Return to homepage

DOSATO

Copyright © 2024 Sebastiaan Heins

3.6 Random

Functions

void srandom (uint seed)

Sets the seed for the random number generator.

double random ()

Returns a random decimal number between 0 and 1.

long randomint ()

Returns a random number between 0 and 2^32 - 1 (integer limit).

long randomrange (long min, long max)

Returns a random number between min and max.

bool randombool ()

Returns a random boolean value. (true or false)