#random()
DESCRIPTION
returns a random fraction 0 <= r < 1
or:
returns a random integer from 1 to n
SYNOPSIS
#random()
or:
#random(i)
ARGUMENTS
none
or:
i - a positive integer, or positive integer expression
EXAMPLES
# pikt +C 'output $text(#random(),10)'
0.7098662308
# pikt +C 'output $text(#random(100))'
24
begin
pause #random(60) // up to a 1-minute pause so we don't
// hit the NIS servers all at once
begin
// so as not to clobber /usr/local from all machines at
// once, put in this random pause
pause #random(3600) // up to a one-hour pause
SEE ALSO
Numerical Functions
String Functions