Package jadex.common
Class Xoroshiro128Random
java.lang.Object
java.util.Random
jadex.common.Xoroshiro128Random
- All Implemented Interfaces:
Serializable
,RandomGenerator
xoroshiro128+ implementation based on work by David Blackman and Sebastiano Vigna.
http://xoroshiro.di.unimi.it/xoroshiro128plus.c
To the extent possible under law, the author has dedicated all copyright
and related and neighboring rights to this software to the public domain
worldwide. This software is distributed without any warranty.
See invalid input: '<'http://creativecommons.org/publicdomain/zero/1.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
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.util.Random
doubles, doubles, doubles, doubles, from, ints, ints, ints, ints, longs, longs, longs, longs, nextBoolean, nextBytes, nextFloat, nextGaussian, nextInt, nextInt, setSeed
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.random.RandomGenerator
isDeprecated, nextDouble, nextDouble, nextExponential, nextFloat, nextFloat, nextGaussian, nextInt, nextLong, nextLong
-
Field Details
-
DOUBLE_BASE
protected static final double DOUBLE_BASE- See Also:
-
-
Constructor Details
-
Xoroshiro128Random
public Xoroshiro128Random() -
Xoroshiro128Random
public Xoroshiro128Random(long[] state)
-
-
Method Details
-
next
public int next(int bits) -
nextDouble
public double nextDouble()- Specified by:
nextDouble
in interfaceRandomGenerator
- Overrides:
nextDouble
in classRandom
-
nextLong
public long nextLong()- Specified by:
nextLong
in interfaceRandomGenerator
- Overrides:
nextLong
in classRandom
-