Package it.unibo.alchemist.util
Object RandomGenerators
-
- All Implemented Interfaces:
public class RandomGenerators
Utilities that extend the functionality of RandomGenerator.
-
-
Field Summary
Fields Modifier and Type Field Description public final static RandomGenerators
INSTANCE
-
Method Summary
Modifier and Type Method Description final Double
nextDouble(RandomGenerator $self, Double from, Double to)
Generate a random double between the given bounds. final Double
randomAngle(RandomGenerator $self)
Generates a random value in 0..2π. -
-
Method Detail
-
nextDouble
final Double nextDouble(RandomGenerator $self, Double from, Double to)
Generate a random double between the given bounds.
- Parameters:
from
-the lower bound.
to
-the upper bound.
-
randomAngle
final Double randomAngle(RandomGenerator $self)
Generates a random value in 0..2π.
-
-
-
-