public class RandomFactory extends Object
Constructor and Description |
---|
RandomFactory() |
Modifier and Type | Method and Description |
---|---|
static Random |
getRandom()
Returns the random number generator used for generating a stream of random
numbers.
|
boolean |
isDeterministic() |
static void |
resetDeterministic(long seed)
Resets the random number generator instance to be deterministic when
generating random numbers.
|
static void |
setRandom(Random random)
Sets the random number generator instance used for generating a stream of
random numbers.
|
public boolean isDeterministic()
public static Random getRandom()
public static void setRandom(Random random)
public static void resetDeterministic(long seed)
seed
- the seed to use for the new deterministic random generator.Copyright © 2021 Robocode. All Rights Reserved.