Mono Class Library: Mono.Unix.Native.Stdlib Overview | Members

Mono.Unix.Native.Stdlib.srand Method

Initialize the random number generator. [Edit]

[System.CLSCompliant(false)]
public static void srand (uint seed)

Parameters

seed
The value to seed the random number generator with. [Edit]

Remarks

The srand() function sets its argument seed as the seed for a new sequence of pseudo-random numbers to be returned by Stdlib.rand(). These sequences are repeatable by calling srand() with the same seed value.

If no seed value is provided, the functions are automatically seeded with a value of 1.

[Edit]

Requirements

Namespace: Mono.Unix.Native
Assembly: Mono.Posix (in Mono.Posix.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0