java.lang.Object
java.util.Random
io.jenetics.util.RandomAdapter
- All Implemented Interfaces:
Serializable,RandomGenerator
Deprecated, for removal: This API element is subject to removal in a future version.
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:
-
Nested Class Summary
Nested classes/interfaces inherited from interface java.util.random.RandomGenerator
RandomGenerator.ArbitrarilyJumpableGenerator, RandomGenerator.JumpableGenerator, RandomGenerator.LeapableGenerator, RandomGenerator.SplittableGenerator, RandomGenerator.StreamableGenerator -
Method Summary
Modifier and TypeMethodDescriptiondoubles()Deprecated, for removal: This API element is subject to removal in a future version.doubles(double randomNumberOrigin, double randomNumberBound) Deprecated, for removal: This API element is subject to removal in a future version.doubles(long streamSize) Deprecated, for removal: This API element is subject to removal in a future version.doubles(long streamSize, double randomNumberOrigin, double randomNumberBound) Deprecated, for removal: This API element is subject to removal in a future version.ints()Deprecated, for removal: This API element is subject to removal in a future version.ints(int randomNumberOrigin, int randomNumberBound) Deprecated, for removal: This API element is subject to removal in a future version.ints(long streamSize) Deprecated, for removal: This API element is subject to removal in a future version.ints(long streamSize, int randomNumberOrigin, int randomNumberBound) Deprecated, for removal: This API element is subject to removal in a future version.booleanDeprecated, for removal: This API element is subject to removal in a future version.longs()Deprecated, for removal: This API element is subject to removal in a future version.longs(long streamSize) Deprecated, for removal: This API element is subject to removal in a future version.longs(long randomNumberOrigin, long randomNumberBound) Deprecated, for removal: This API element is subject to removal in a future version.longs(long streamSize, long randomNumberOrigin, long randomNumberBound) Deprecated, for removal: This API element is subject to removal in a future version.booleanDeprecated, for removal: This API element is subject to removal in a future version.voidnextBytes(byte[] bytes) Deprecated, for removal: This API element is subject to removal in a future version.doubleDeprecated, for removal: This API element is subject to removal in a future version.doublenextDouble(double bound) Deprecated, for removal: This API element is subject to removal in a future version.doublenextDouble(double origin, double bound) Deprecated, for removal: This API element is subject to removal in a future version.doubleDeprecated, for removal: This API element is subject to removal in a future version.floatDeprecated, for removal: This API element is subject to removal in a future version.floatnextFloat(float bound) Deprecated, for removal: This API element is subject to removal in a future version.floatnextFloat(float origin, float bound) Deprecated, for removal: This API element is subject to removal in a future version.doubleDeprecated, for removal: This API element is subject to removal in a future version.doublenextGaussian(double mean, double stddev) Deprecated, for removal: This API element is subject to removal in a future version.intnextInt()Deprecated, for removal: This API element is subject to removal in a future version.intnextInt(int bound) Deprecated, for removal: This API element is subject to removal in a future version.intnextInt(int origin, int bound) Deprecated, for removal: This API element is subject to removal in a future version.longnextLong()Deprecated, for removal: This API element is subject to removal in a future version.longnextLong(long bound) Deprecated, for removal: This API element is subject to removal in a future version.longnextLong(long origin, long bound) Deprecated, for removal: This API element is subject to removal in a future version.static Randomof(RandomGenerator random) Deprecated, for removal: This API element is subject to removal in a future version.Create a newRandomobject from the givenrandomgenerator.
-
Method Details
-
isDeprecated
Deprecated, for removal: This API element is subject to removal in a future version. -
doubles
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
doublesin interfaceRandomGenerator- Overrides:
doublesin classRandom
-
doubles
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
doublesin interfaceRandomGenerator- Overrides:
doublesin classRandom
-
doubles
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
doublesin interfaceRandomGenerator- Overrides:
doublesin classRandom
-
doubles
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
doublesin interfaceRandomGenerator- Overrides:
doublesin classRandom
-
ints
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
intsin interfaceRandomGenerator- Overrides:
intsin classRandom
-
ints
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
intsin interfaceRandomGenerator- Overrides:
intsin classRandom
-
ints
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
intsin interfaceRandomGenerator- Overrides:
intsin classRandom
-
ints
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
intsin interfaceRandomGenerator- Overrides:
intsin classRandom
-
longs
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
longsin interfaceRandomGenerator- Overrides:
longsin classRandom
-
longs
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
longsin interfaceRandomGenerator- Overrides:
longsin classRandom
-
longs
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
longsin interfaceRandomGenerator- Overrides:
longsin classRandom
-
longs
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
longsin interfaceRandomGenerator- Overrides:
longsin classRandom
-
nextBoolean
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
nextBooleanin interfaceRandomGenerator- Overrides:
nextBooleanin classRandom
-
nextBytes
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
nextBytesin interfaceRandomGenerator- Overrides:
nextBytesin classRandom
-
nextFloat
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
nextFloatin interfaceRandomGenerator- Overrides:
nextFloatin classRandom
-
nextFloat
Deprecated, for removal: This API element is subject to removal in a future version. -
nextFloat
Deprecated, for removal: This API element is subject to removal in a future version. -
nextDouble
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
nextDoublein interfaceRandomGenerator- Overrides:
nextDoublein classRandom
-
nextDouble
Deprecated, for removal: This API element is subject to removal in a future version. -
nextDouble
Deprecated, for removal: This API element is subject to removal in a future version. -
nextInt
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
nextIntin interfaceRandomGenerator- Overrides:
nextIntin classRandom
-
nextInt
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
nextIntin interfaceRandomGenerator- Overrides:
nextIntin classRandom
-
nextInt
Deprecated, for removal: This API element is subject to removal in a future version. -
nextLong
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
nextLongin interfaceRandomGenerator- Overrides:
nextLongin classRandom
-
nextLong
Deprecated, for removal: This API element is subject to removal in a future version. -
nextLong
Deprecated, for removal: This API element is subject to removal in a future version. -
nextGaussian
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
nextGaussianin interfaceRandomGenerator- Overrides:
nextGaussianin classRandom
-
nextGaussian
Deprecated, for removal: This API element is subject to removal in a future version. -
nextExponential
Deprecated, for removal: This API element is subject to removal in a future version. -
of
Deprecated, for removal: This API element is subject to removal in a future version.Create a newRandomobject from the givenrandomgenerator.- Parameters:
random- the random generator to adapt- Returns:
- the adapted random generator
-
Random.from(RandomGenerator)method instead.