home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The C Users' Group Library 1994 August
/
wc-cdrom-cusersgrouplibrary-1994-08.iso
/
listings
/
v_10_04
/
1004020b
< prev
next >
Wrap
Text File
|
1992-03-04
|
253b
|
12 lines
/* rand function */
#include <stdlib.h>
/* the seed */
unsigned long _Randseed = 1;
int (rand)(void)
{ /* compute pseudo-random value */
_Randseed = _Randseed * 1103515245 + 12345;
return ((unsigned int)(_Randseed >> 16) & RAND_MAX);
}