Mono Class Library: Mono.Unix.Native.Stdlib Overview | MembersMono.Unix.Native.Stdlib.srand Method |
Initialize the random number generator. [Edit]
|
- seed
- The value to seed the random number generator with. [Edit]
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]
Namespace: Mono.Unix.Native
Assembly: Mono.Posix (in Mono.Posix.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0