home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Giga Games 1
/
Giga Games.iso
/
net
/
go
/
prog
/
nextgo23.taz
/
nextgo23
/
NeXTGo
/
random.c
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1993-02-09
|
233 b
|
17 lines
#include "comment.header"
extern void seed(int*);
void Random(int *i)
/* random number generator */
{
if (*i == 0)
seed(i);
else
{
*i = *i * 137 % 3833;
if (*i < 0) *i = -*i;
}
} /* end random */