Next: , Previous: glibc math, Up: glibc


6.7 Pseudo–random numbers

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

— Function: rand

Interface to the C function rand(), 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(), srand. Set to the exact integer seed the seed of the pseudo–random numbers series.