Package de.extio.spacecraft.shared.rng
Class XorShift128Random
- java.lang.Object
-
- java.util.Random
-
- de.extio.spacecraft.shared.rng.XorShift128Random
-
- All Implemented Interfaces:
Serializable
public final class XorShift128Random extends Random
Random implementation using the Xorshift+ (xorshift128plus) algorithm- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description XorShift128Random()XorShift128Random(long seed)XorShift128Random(String state)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected intnext(int bits)longnextLong()voidsetSeed(long seed)StringtoString()
-
-
-
Constructor Detail
-
XorShift128Random
public XorShift128Random()
-
XorShift128Random
public XorShift128Random(long seed)
-
XorShift128Random
public XorShift128Random(String state)
-
-