suve
string :random ( string $CHARSET )
float :random ( float $MIN , float $MAX )
float :random ( float $RANGE )
float :random
int :random ( int $MIN , int $MAX )
int :random ( int $RANGE )
Returns a random value. The PRNG is initialized automatically upon interpreter start.
[MIN, MAX) range.[0, RANGE) range.[0, 1) range.[MIN, MAX] range.[0, RANGE-1] range.# Function generating a random string of given length. !fun :randstr $LEN :set &STR s'' !while $LEN :add &STR :random s'abcdefghijklmnopqstuvwxyz0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ' :sub &LEN i1 !done :return $STR !nuf
wikipage modified on 2014/0601/2317