Click or drag to resize

XorShiftRandom Class

Xor Shift based random
Inheritance Hierarchy

Namespace:  Internal.Lidgren.Network
Assembly:  NeoAxis.Core (in NeoAxis.Core.dll) Version: 2024.1.1.0 (2024.1.1.0)
Syntax
C#
public sealed class XorShiftRandom : NetRandom

The XorShiftRandom type exposes the following members.

Constructors
  NameDescription
Public methodXorShiftRandom
Constructor with randomized seed
Public methodXorShiftRandom(UInt64)
Constructor with provided 64 bit seed
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodInitialize(UInt32)
(Re)initialize this instance with provided 32 bit seed
(Overrides NetRandomInitialize(UInt32).)
Public methodInitialize(UInt64)
(Re)initialize this instance with provided 64 bit seed
Public methodNext
Generates a random value that is greater or equal than 0 and less than Int32.MaxValue
(Inherited from NetRandom.)
Public methodNext(Int32)
Returns a random value is greater or equal than 0 and less than maxValue
(Inherited from NetRandom.)
Public methodNext(Int32, Int32)
Returns a random value is greater or equal than minValue and less than maxValue
(Inherited from NetRandom.)
Public methodNextBool
Returns true or false, randomly
(Inherited from NetRandom.)
Public methodNextBytes(Byte)
Fill the specified buffer with random values
(Inherited from NetRandom.)
Public methodNextBytes(Byte, Int32, Int32)
Fills all bytes from offset to offset + length in buffer with random values
(Inherited from NetRandom.)
Public methodNextDouble
Returns random value larger or equal to 0.0 and less than 1.0
(Inherited from NetRandom.)
Public methodNextInt32
Generates a random value greater or equal than 0 and less or equal than Int32.MaxValue (inclusively)
(Inherited from NetRandom.)
Public methodNextSingle
Returns random value is greater or equal than 0.0f and less than 1.0f
(Inherited from NetRandom.)
Public methodNextUInt32
Generates a random value from UInt32.MinValue to UInt32.MaxValue, inclusively
(Overrides NetRandomNextUInt32.)
Public methodNextUInt64
Generates a random value between UInt64.MinValue to UInt64.MaxValue
(Inherited from NetRandom.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Fields
  NameDescription
Public fieldStatic memberInstance
Get global instance of XorShiftRandom
Top
Extension Methods
See Also