Lines Matching refs:random
36 * random.c:
38 * An improved random number generation package. In addition to the standard
42 * then initialized to contain information for random number generation with
47 * information and generates far better random numbers than a linear
59 * The random number generation technique is a linear feedback shift register
66 * influenced by pseudo-random carries out of the lower bits. The total
87 * state information and generates far better random numbers than a linear
95 * For each of the currently supported random number generators, we have a
97 * many bytes of state info to support this random number generator), a degree
165 * could get away with just one pointer, but the code for random() is more
182 * of random(), we remember the first location of the state information, not
221 * Initialize the random number generator based on the given seed. If the
246 (void)random();
253 * This often causes problems. We seed the generator using pseudo-random
296 * random number generation. Based on the number of bytes we are given, and
404 * random:
412 * generated, reduced to 31 bits by throwing away the "least random" low bit.
418 * Returns a 31-bit random number.
421 random(void)
435 i = *f >> 1; /* chucking least random bit */