System.Random Members

The members of System.Random are listed below.

See Also: Inherited members from System.Object

Public Constructors

Initializes a new instance of the Random class, using a time-dependent default seed value.

Initializes a new instance of the Random class, using the specified seed value.

Public Methods

Next() : int

Returns a nonnegative random integer.

Next(int) : int

Returns a nonnegative random integer that is less than the specified maximum.

Next(int, int) : int

Returns a random integer that is within a specified range.

NextBytes(byte[])

Fills the elements of a specified array of bytes with random numbers.

NextDouble() : double

Returns a random floating-point number between 0.0 and 1.0.

Protected Methods

Sample() : double

Returns a random floating-point number between 0.0 and 1.0.