Next: , Previous: , Up: glibc   [Index]


5.9 Pseudo–random numbers

The following bindings are exported by the (vicare glibc) library.

Function: rand

Interface to the C function rand(), (libc)rand. Return a non–negative exact integer representing the next pseudo–random number in the series. The maximum returned value is RAND_MAX, which is a binding exported by (vicare platform constants).

Function: srand seed

Interface to the C function srand(), (libc)srand. Set to the exact integer seed the seed of the pseudo–random numbers series.