random

global std_rand_next

Cell variable containing the random number generator's state

const RAND_MAX

Contains the maximum return value of rand

rand

Returns a random number

srand

Parameters: cell seed

Sets the random number generator's seed and resets the state