NAME

rand – a module for Tensile (see
sl(1))

OVERVIEW

This module provides access to random number generators

FUNCTIONS

rand()
RETURNS:the next pseudorandom value of a software generator (see rand(3))

srand([seed])

Sets the seed of a software random generator to seed, or to the current time value if seed is not present

highrand(n strict)

RETURNS:n bytes of highly-randomized (probably hardware-generated) value If strict is empty, a less reliable generator may be used
NOTE:On Linux (as well as some other *nix systems) this functions accesses /dev/random or /dev/urandom resp.
NOTE:This function will not be present, if no adequate generator is available

SEE ALSO

rand(3), sl(1)

AUTHOR

Artem V. Andreev

COPYRIGHT

Copyright © 2002 Artem V. Andreev – See
sl(1)