FunctionReturn a pseudo random number. Header stdlib.h Declarationint rand (void); DescriptionThe function returns a pseudo random number between 0 and RAND_MAX (exclusive). Limits Without using srand, always the same flow of numbers is generated. On startup, the function behaves as if srand had been used with an argument of 1. AvailabilityISO 9899 See also _randomize, srand ExampleNone.
Return a pseudo random number.
stdlib.h
int rand (void);
The function returns a pseudo random number between 0 and RAND_MAX (exclusive).
RAND_MAX
srand
ISO 9899
_randomize, srand
None.