rand()

rand(). base. Returns a random number between 0 and MAX_INT. Use with % <radix> to get a specific range; e.g. rand() % 2 to get a random yes/no result.

Categories