random

final_realms_fluffos_v1/lib/doc/driver/efuns/system/random · 374 B

From the archive final_realms_fluffos_v1.zip

Download the archive   « Back to the archive contents

.\"return a pseudo-random number

.DT
random
Discworld driver help
random

Name
.SI 5
random() - return a pseudo-random number

.EI
Synopsis
.SI 5
int random(int n);

.EI
Description
.SP 5 5
Return a pseudo-random number from the range [0 .. (n -1)] (inclusive).
The random number generator to be used is specified in the driver
port.h file when the driver is compiled.
.EP

Site Stats

Snippets: 1791
Codebases: 571