Assembly: VRage.Library.dll

public class MyRandom

Original C# implementation which allows settings the seed.

Properties

Member Description
static Instance

Constructors

Member Description
MyRandom()
MyRandom(int)

Methods

Member Description
CreateRandomSeed()
GetRandomFloat(float, float)
GetRandomSign()
GetState(out State)
Next()
Next(int)
Next(int, int)
NextBytes(Byte[])
NextDouble()
NextDouble(double, double)
NextFloat()
NextLong()
PushSeed(int)
SetSeed(int) 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.
SetState(ref State)