Lines Matching defs:random
33 * @(#)random.c 5.5 (Berkeley) 7/6/88
39 @deftypefn Supplement {long int} random (void)
44 Random number functions. @code{random} returns a random number in the
45 range 0 to @code{LONG_MAX}. @code{srandom} initializes the random
47 (else, the values returned by @code{random} are always the same for each
49 control over the state of the random number generator.
83 long int random (void);
85 /* An improved random number generation package. In addition to the standard
89 then initialized to contain information for random number generation with
94 information and generates far better random numbers than a linear
103 for details). The random number generation technique is a linear feedback
110 also influenced by pseudo-random carries out of the lower bits. The
120 /* For each of the currently supported random number generators, we have a
122 bytes of state info to support this random number generator), a degree for
191 away with just one pointer, but the code for random is more efficient
206 Note that for efficiency of random, we remember the first location of
222 /* Initialize the random number generator based on the given seed. If the
242 random();
248 future random number generation. Based on the number of bytes we
374 reduced to 31 bits by throwing away the "least random" low bit.
377 pointer if the front one has wrapped. Returns a 31-bit random number. */
380 random (void)
391 /* Chucking least random bit. */