public class XorshiftStarRandom extends Random
Random that implements the Xorshift Star random
number generator.
https://en.wikipedia.org/wiki/Xorshift| Constructor and Description |
|---|
XorshiftStarRandom() |
XorshiftStarRandom(int salt)
Constructor that receives an integer as 'salt'.
|
XorshiftStarRandom(long seed) |
| Modifier and Type | Method and Description |
|---|---|
protected int |
next(int bits) |
long |
nextLong() |
public XorshiftStarRandom()
public XorshiftStarRandom(int salt)
salt - a number used to generate the seed.public XorshiftStarRandom(long seed)
Copyright © 2020. All rights reserved.