Original C# implementation which allows settings the seed.
More...
Original C# implementation which allows settings the seed.
Definition at line 13 of file MyRandom.cs.
VRage.Library.Utils.MyRandom.MyRandom |
( |
| ) |
|
|
inline |
VRage.Library.Utils.MyRandom.MyRandom |
( |
int |
Seed | ) |
|
|
inline |
int VRage.Library.Utils.MyRandom.CreateRandomSeed |
( |
| ) |
|
|
inline |
unsafe void VRage.Library.Utils.MyRandom.GetState |
( |
out State |
state | ) |
|
|
inline |
int VRage.Library.Utils.MyRandom.Next |
( |
| ) |
|
|
inline |
int VRage.Library.Utils.MyRandom.Next |
( |
int |
maxValue | ) |
|
|
inline |
int VRage.Library.Utils.MyRandom.Next |
( |
int |
minValue, |
|
|
int |
maxValue |
|
) |
| |
|
inline |
int VRage.Library.Utils.MyRandom.Next |
( |
int |
hash, |
|
|
int |
minValue, |
|
|
int |
maxValue |
|
) |
| |
|
inline |
void VRage.Library.Utils.MyRandom.NextBytes |
( |
byte[] |
buffer | ) |
|
|
inline |
double VRage.Library.Utils.MyRandom.NextDouble |
( |
| ) |
|
|
inline |
Returns random number between 0 and 1.
Definition at line 331 of file MyRandom.cs.
double VRage.Library.Utils.MyRandom.NextDouble |
( |
int |
hash | ) |
|
|
inline |
Returns random number between 0 and 1.
Definition at line 337 of file MyRandom.cs.
float VRage.Library.Utils.MyRandom.NextFloat |
( |
| ) |
|
|
inline |
Returns random number between 0 and 1.
Definition at line 319 of file MyRandom.cs.
float VRage.Library.Utils.MyRandom.NextFloat |
( |
int |
hash | ) |
|
|
inline |
Returns random number between 0 and 1.
Definition at line 325 of file MyRandom.cs.
long VRage.Library.Utils.MyRandom.NextLong |
( |
| ) |
|
|
inline |
StateToken VRage.Library.Utils.MyRandom.PushSeed |
( |
int |
newSeed | ) |
|
|
inline |
double VRage.Library.Utils.MyRandom.Sample |
( |
| ) |
|
|
inlineprotected |
double VRage.Library.Utils.MyRandom.Sample |
( |
int |
hash | ) |
|
|
inlineprotected |
void VRage.Library.Utils.MyRandom.SetSeed |
( |
int |
Seed | ) |
|
|
inline |
Sets new seed, only use this method when you have separate instance of MyRandom. Setting seed for RNG used for EntityId without reverting to previous state is dangerous. Use PushSeed for EntityId random generator.
Definition at line 163 of file MyRandom.cs.
unsafe void VRage.Library.Utils.MyRandom.SetState |
( |
ref State |
state | ) |
|
|
inline |
MyRandom VRage.Library.Utils.MyRandom.Instance |
|
staticget |
The documentation for this class was generated from the following file: