rand


Pseudorandom number sequence generation

[Classification]

Standard library

[Syntax]

#include <stdlib.h>

int __far rand(void);

[Return value]

Random numbers are returned.

[Description]

This function returns a random number that is greater than or equal to zero and less than or equal to RAND_MAX (0x7FFF).