Parameters
int
seed
The seed value.
bool
threadSafe
if set to true
, the class is thread safe.
This is xoshiro256** 1.0, our all-purpose, rock-solid generator. It has excellent(sub-ns) speed, a state space(256 bits) that is large enough for any parallel application, and it passes all tests we are aware of. For generating just floating-point numbers, xoshiro256+ is even faster. The state must be seeded so that it is not everywhere zero.If you have a 64-bit seed, we suggest to seed a splitmix64 generator and use its output to fill s. For further details see: David Blackman & Sebastiano Vigna (2018), "Scrambled Linear Pseudorandom Number Generators". https://arxiv.org/abs/1805.01407
int
seedThe seed value.
bool
threadSafeif set to true
, the class is thread safe.
bool
threadSafeif set to true
, the class is thread safe.
int
seedThe seed value.
Supports being called in parallel from multiple threads.
Supports being called in parallel from multiple threads.
Supports being called in parallel from multiple threads, but the result must be enumerated from a single thread each.
int
maxExclusiveThe exclusive upper bound of the random number returned. Range: maxExclusive ≥ 1.
int
A 32-bit signed integer less than maxExclusive.
int
minInclusiveThe inclusive lower bound of the random number returned.
int
maxExclusiveThe exclusive upper bound of the random number returned. Range: maxExclusive > minExclusive.
int
A 32-bit signed integer greater than or equal to minInclusive and less than maxExclusive ; that is, the range of return values includes minInclusive but not maxExclusive. If minInclusive equals maxExclusive , minInclusive is returned.
Byte[]
bufferAn array of bytes to contain random numbers.
Double[]
valuesThe array to fill with random values.
int
countThe size of the array to fill.
Int32[]
valuesThe array to fill with random values.
int
minInclusiveThe inclusive lower bound of the random number returned.
int
maxExclusiveThe exclusive upper bound of the random number returned. Range: maxExclusive > minExclusive.
int
countThe size of the array to fill.
int
minInclusiveThe inclusive lower bound of the random number returned.
int
maxExclusiveThe exclusive upper bound of the random number returned. Range: maxExclusive > minExclusive.
int
countThe size of the array to fill.
int
maxExclusiveThe exclusive upper bound of the random number returned. Range: maxExclusive ≥ 1.
Int32[]
valuesThe array to fill with random values.
int
maxExclusiveThe exclusive upper bound of the random number returned. Range: maxExclusive ≥ 1.
int
countThe size of the array to fill.
Int32[]
valuesThe array to fill with random values.
int
minInclusiveThe inclusive lower bound of the random number returned.
int
maxExclusiveThe exclusive upper bound of the random number returned. Range: maxExclusive > minExclusive.