Lines Matching refs:randoms
311 There's an auxiliary array |randoms| that contains 55 pseudo-random
318 static int randoms[55]; /* the last 55 random values generated */
319 static int j_random; /* the number of unused |randoms| */
632 and then it will fetch |randoms[j_random]|.
641 int k; /* index into |randoms| */
644 x = randoms[k] - randoms[k + 31];
647 randoms[k] = x;
650 x = randoms[k] - randoms[k - 24];
653 randoms[k] = x;
659 @ To initialize the |randoms| table, we call the following routine.
665 int i; /* index into |randoms| */
676 randoms[(i * 21) % 55] = j;
696 y = take_frac(abs(x), randoms[j_random]);
717 x = take_frac(112429, randoms[j_random] - fraction_half);
720 u = randoms[j_random];