Click or drag to resize

NetRandom Class

NetRandom base class
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 abstract class NetRandom : Random

The NetRandom type exposes the following members.

Constructors
  NameDescription
Public methodNetRandom
Constructor with randomized seed
Public methodNetRandom(Int32)
Constructor with provided 32 bit seed
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(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
(Re)initialize this instance with provided 32 bit seed
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodNext
Generates a random value that is greater or equal than 0 and less than Int32.MaxValue
(Overrides RandomNext.)
Public methodNext(Int32)
Returns a random value is greater or equal than 0 and less than maxValue
(Overrides RandomNext(Int32).)
Public methodNext(Int32, Int32)
Returns a random value is greater or equal than minValue and less than maxValue
(Overrides RandomNext(Int32, Int32).)
Public methodNextBool
Returns true or false, randomly
Public methodNextBytes(Byte)
Fill the specified buffer with random values
(Overrides RandomNextBytes(Byte).)
Public methodNextBytes(Byte, Int32, Int32)
Fills all bytes from offset to offset + length in buffer with random values
Public methodNextDouble
Returns random value larger or equal to 0.0 and less than 1.0
(Overrides RandomNextDouble.)
Public methodNextInt32
Generates a random value greater or equal than 0 and less or equal than Int32.MaxValue (inclusively)
Public methodNextSingle
Returns random value is greater or equal than 0.0f and less than 1.0f
Public methodNextUInt32
Generates a random value from UInt32.MinValue to UInt32.MaxValue, inclusively
Public methodNextUInt64
Generates a random value between UInt64.MinValue to UInt64.MaxValue
Protected methodSample
Returns random value is greater or equal than 0.0 and less than 1.0
(Overrides RandomSample.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Fields
  NameDescription
Public fieldStatic memberInstance
Get global instance of NetRandom (uses MWCRandom)
Top
Extension Methods
See Also