Table of Contents Previous topic Next topic
COMPILER LIBRARY FUNCTIONS->Detailed Descriptions->rand()
Summary
#include <string.h>
int rand(void);
Description
This function returns a pseudo random number in the range 0 to 32767. The srand() function can be called before rand() to seed the random number generator.
Return
The function returns a pseudo random number in the range 0 to 32767.