The Random type exposes the following members.

Constructors

  NameDescription
Public methodRandom()()()()
Creates a new instance.
Public methodRandom(Int64)
Creates a new instance with the given seed value

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 the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodNext
Generate the next pseudo random number
Public methodNextBoolean
Generate the next pseudo random number as a boolean value.
Public methodNextDouble
Generate the next pseudo random number as a double value in the interval 0.0 (inclusive) and 1.0 (exclusive)
Public methodNextFloat
Generate the next pseudo random number as a float value in the interval 0.0 (inclusive) and 1.0 (exclusive)
Public methodNextInt()()()()
Generate the next pseudo random number
Public methodNextInt(Int32)
Generate the next pseudo random number in the range from 0 (inclusive) to n (exclusive)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)

Properties

  NameDescription
Public propertySeed
The seed of this instance.

See Also