Neither the C standards nor the POSIX specifications define a distribution for random()
or rand()
. The manipulations for several systems that I tested also do not determine this.
, , , , random()
rand()
, () , , .
, , random , , ( ), , ( ). , , , - , (, , - PRNG ).
(POSIX)
, POSIX, :
NAME
drand48, erand48, jrand48, lcong48, lrand48, mrand48, nrand48, seed48, srand48 -
#include <stdlib.h>
double drand48(void);
double erand48(unsigned short xsubi[3]);
long jrand48(unsigned short xsubi[3]);
void lcong48(unsigned short param[7]);
long lrand48(void);
long mrand48(void);
long nrand48(unsigned short xsubi[3]);
unsigned short *seed48(unsigned short seed16v[3]);
void srand48(long seedval);
FreeBSD manpage drand48
, arc4random()
. arc4random()
BSD, - .