NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Random Constructor (Int32)

Initializes an instance of the random number generator, using the specified seed.

[Visual Basic]
Overloads Public Sub New( _
   ByVal Seed As Integer _
)
[C#]
public Random(
   int Seed
);
[C++]
public: Random(
   int Seed
);
[JScript]
public function Random(
   Seed : int
);

Parameters

Seed
An integer used to vary the random results. An Int32 representation of the date or time is frequently used for this value.

Remarks

The distribution of the generated numbers is uniform: each number is equally likely to be returned.

See Also

Random Class | Random Members | System Namespace | Random Constructor Overload List