<rand $min $max>
rand function returns a pseudo-random integer
$max. The pseudo-random number generator used
is the system
random() C function, and is seeded
srand (here). If
srand has not been
explicitly called before the first use of
with an empty argument is called first.
rand returns a pseudo-random integer
<= n <
<rand 0 100>
Your test score is $ret%.
The output might be:
Your test score is 42%.
rand function was added Nov. 7 1996.
Although seeded, the randomness of numbers generated by
may vary by platform.