This documentation is archived and is not being maintained.

Random Members

Random overview

Public Constructors

public constructorRandom Constructor

Supported by the .NET Compact Framework.

Overloaded. Initializes a new instance of the Random class.

Public Methods

public methodEquals (inherited from Object)

Supported by the .NET Compact Framework.

Overloaded. Determines whether two Object instances are equal.
public methodGetHashCode (inherited from Object)

Supported by the .NET Compact Framework.

Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
public methodGetType (inherited from Object)

Supported by the .NET Compact Framework.

Gets the Type of the current instance.
public methodNext

Supported by the .NET Compact Framework.

Overloaded. Returns a random number.
public methodNextBytes

Supported by the .NET Compact Framework.

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

Supported by the .NET Compact Framework.

Returns a random number between 0.0 and 1.0.
public methodToString (inherited from Object)

Supported by the .NET Compact Framework.

Returns a String that represents the current Object.

Protected Methods

protected methodFinalize (inherited from Object)

Supported by the .NET Compact Framework.

Overridden. Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.

In C# and C++, finalizers are expressed using destructor syntax.

protected methodMemberwiseClone (inherited from Object)

Supported by the .NET Compact Framework.

Creates a shallow copy of the current Object.
protected methodSample

Supported by the .NET Compact Framework.

Returns a random number between 0.0 and 1.0.

See Also

Random Class | System Namespace

Show: