All Packages Class Hierarchy This Package Previous Next Index
Class sdsu.algorithms.data.StringGenerator
java.lang.Object
|
+----sdsu.algorithms.data.StringGenerator
- public class StringGenerator
- extends Object
- implements ObjectGenerator
Generates a sequence of random strings. The characters in the string are random
visible ascii characters. The length of the strings is also choosen at random
between a min and max value.
- Version:
- 1.0 19 June 1997
- Author:
- Roger Whitney (whitney@cs.sdsu.edu)
- See Also:
- ObjectGenerator, NumberGenerator
-
StringGenerator(int)
- Create an StringGenerator which a sequence of random strings.
-
StringGenerator(int, int)
- Create an StringGenerator which a sequence of random strings.
-
nextElement()
- Returns next random string.
StringGenerator
public StringGenerator(int maxLength)
- Create an StringGenerator which a sequence of random strings.
The strings will be between 1 and maxLength characters in length.
StringGenerator
public StringGenerator(int minLength,
int maxLength)
- Create an StringGenerator which a sequence of random strings.
The strings will be between minLength and maxLength characters in length.
nextElement
public Object nextElement()
- Returns next random string.
All Packages Class Hierarchy This Package Previous Next Index