Mono Class Library: Overview

System.Random: Members

The members of System.Random are listed below.

See Also: Inherited members from System.Object

Public Constructors

Constructs a new instance of the Random class using Environment.TickCount as the seed value.
Constructs a new instance of the Random class using the specified seed value.

Public Methods

Next() : int
Returns a psuedo-random number between 0 and int.MaxValue.
Next(int) : int
Returns a psuedo-random positive number less than the specified maximum.
Next(int, int) : int
Returns a psuedo-random number within a specified range.
NextBytes(byte[])
Populates the elements of a specified array of bytes with random numbers.
NextDouble() : double
Returns a random number between 0.0 and 1.0.

Protected Methods

Sample() : double
Documentation for this section has not yet been entered.