06.08.2013 Views

pSOSystem System Calls - Read

pSOSystem System Calls - Read

pSOSystem System Calls - Read

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

and pREPC+ <strong>System</strong> <strong>Calls</strong><br />

rand Returns a pseudo-random number.<br />

#include <br />

int rand(<br />

void<br />

)<br />

Description<br />

Return Value<br />

Error Codes<br />

Notes<br />

See Also<br />

The rand() function generates a pseudo-random integer number in the range 0<br />

through 32,767. This function works in concert with srand().<br />

This function returns the random number generated.<br />

None.<br />

Callable From<br />

■ Task<br />

srand<br />

3-122 <strong>pSO<strong>System</strong></strong> <strong>System</strong> <strong>Calls</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!