com.svincent.util
Class RandomUtil

java.lang.Object
  |
  +--com.svincent.util.RandomUtil

public class RandomUtil
extends java.lang.Object

Author:
Shawn Vincent

Inner Class Summary
static class RandomUtil.Histogram
           
 
Method Summary
static void fillRandomly(char[] chars, char loChar, char hiChar)
           
static void main(java.lang.String[] args)
           
static char randomChar(char loChar, char hiChar)
           
static java.lang.String randomFixedLengthString(int len, char loChar, char hiChar)
           
static int randomInt(int lo, int hi)
          Generates a random integer between 'lo' and 'hi', inclusively.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

randomFixedLengthString

public static java.lang.String randomFixedLengthString(int len,
                                                       char loChar,
                                                       char hiChar)

fillRandomly

public static void fillRandomly(char[] chars,
                                char loChar,
                                char hiChar)

randomChar

public static char randomChar(char loChar,
                              char hiChar)

randomInt

public static int randomInt(int lo,
                            int hi)
Generates a random integer between 'lo' and 'hi', inclusively.

main

public static void main(java.lang.String[] args)



This is documentation for Moksa Prolog, which can be found at http://www.svincent.com/moksa/

Copyright © 1999 Shawn P. Vincent.

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.