Class XorShiftRandom
- Namespace
- Lime
- Assembly
- Lime.dll
public sealed class XorShiftRandom : IRandom
- Inheritance
-
XorShiftRandom
- Implements
-
- Inherited Members
-
- Extension Methods
-
Constructors
XorShiftRandom()
XorShiftRandom(int)
public XorShiftRandom(int seed)
Parameters
seed
int
Methods
Next()
Returns
- int
Next(int)
public int Next(int maxValue)
Parameters
maxValue
int
Returns
- int
Next(int, int)
public int Next(int minValue, int maxValue)
Parameters
minValue
int
maxValue
int
Returns
- int
NextBytes(byte[])
public void NextBytes(byte[] buffer)
Parameters
buffer
byte[]
NextBytes(Span<byte>)
public void NextBytes(Span<byte> buffer)
Parameters
buffer
Span<byte>
NextDouble()
public double NextDouble()
Returns
- double
NextLong()
Returns
- long
NextLong(long)
public long NextLong(long maxValue)
Parameters
maxValue
long
Returns
- long
NextLong(long, long)
public long NextLong(long minValue, long maxValue)
Parameters
minValue
long
maxValue
long
Returns
- long
NextSingle()
public float NextSingle()
Returns
- float