home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Frozen Fish 1: Amiga
/
FrozenFish-Apr94.iso
/
bbs
/
alib
/
d0xx
/
d074
/
random.lha
/
Random
/
testrnd.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
|
1987-05-07
|
309 b
|
20 lines
#include <exec/types.h>
extern LONG rand();
main()
{
WORD x, y, z;
UWORD i, min, max;
printf("Enter the range <X> <Y> <Z> <MIN> <MAX>\n");
scanf("%d %d %d %u %u", &x, &y, &z, &min, &max);
srand( x, y, z );
for (i=1; i <= 20; i++)
{
printf("%ld\n", rand( min, max ) );
}
}