Click or drag to resize
Random Class
Represents a pseudo-random number generator, a device that produces a sequence of numbers that meet certain statistical requirements for randomness.
Inheritance Hierarchy

Namespace: System
Assembly: mscorlib (in mscorlib.dll) Version:
public class Random

The Random type exposes the following members.

Public methodEquals(Object)
Determines whether the specified Object is equal to the current Object.
(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.)
Public methodNext
Returns a nonnegative random number.
Public methodNext(Int32)
Returns a nonnegative random number less than the specified maximum.
Public methodNext(Int32, Int32)
Returns a random number within a specified range.
Public methodNextDouble
Returns a random number between 0.0 and 1.0.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
See Also