Class RandomAdapter

java.lang.Object
java.util.Random
io.jenetics.util.RandomAdapter
All Implemented Interfaces:
Serializable, RandomGenerator

public final class RandomAdapter extends Random
Some places in the Java API still require a Random object instead of the new RandomGenerator. This class can be used by using this adapter class.
final var random = RandomGenerator.getDefault();
final var bi = new BigInteger(100, RandomAdapter.of(random));
Since:
7.0
Version:
7.0
See Also: