rand()
Calculates a sequence of integer pseudo random numbers.
Synopsis
unsigned rand();
Parameters
Parameter | Description |
---|---|
- | - |
Return value
Error
Description
With the function rand(), a sequence of integer pseudo random numbers in the range 0 to 32767 can be calculated. The initial value can be stored using the function srand().
Example
main()
{
rand();
DebugN(rand());
}
Assignment
Miscellaneous functions
Availability
CTRL