public class RandomStringGenerator extends Object
| Constructor and Description |
|---|
RandomStringGenerator()
Create a new generator with a seed that is very likely to be distinct
from any other invocation of this constructor.
|
RandomStringGenerator(long seed)
Create a new generator with the specified seed.
|
| Modifier and Type | Method and Description |
|---|---|
String |
nextString()
Generate a string of random length and no digits
|
String |
nextString(int length)
Generate a string of the specified length and no digits
|
String |
nextStringAllowDigits()
Generate a string of random length, possibly with digits
|
String |
nextStringAllowDigits(int length)
Generate a string of the specified length, possibly with digits
|
public RandomStringGenerator()
public RandomStringGenerator(long seed)
seed - public String nextString()
public String nextString(int length)
length - public String nextStringAllowDigits()
public String nextStringAllowDigits(int length)
length -