Skip to main content

random

Discworld driver help

random

Name

random() - return a pseudo-random number

Synopsis

int random( int n );

Description

Return a pseudo-random number from the range [0 .. (n -1)] (inclusive).

See also

element_of()