home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
An Introduction to Progr…l Basic 6.0 (4th Edition)
/
An Introduction to Programming using Visual Basic 6.0.iso
/
IE4
/
IEAK4.CAB
/
random.cpp
< 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
|
1998-02-09
|
301 b
|
11 lines
#include <stdlib.h>
#include <ctype.h>
#include "random.h"
//Select a random number generator not known by outsiders
//Anyone who knows the random number generator can guess the
//session handles of the serer and violate he security.
UINT random(UINT seed)
{
srand(seed);
return rand();
}