public class RandomFactory
extends java.lang.Object
int randomInt = new Random().nextInt();
Which is not really random because the default seed is the current time.
So this class provides the seed automatically from a master random number generator.| Constructor and Description |
|---|
RandomFactory() |
| Modifier and Type | Method and Description |
|---|---|
static java.util.Random |
create()
Returns a new random number generator.
|
static long |
getSeed()
Returns a good seed for a random number generator.
|