Lines Matching refs:randmax
65 randint randmax; member
75 s->randnum = s->randmax = 0; in randint_new()
118 randint randmax = s->randmax; in randint_genmax() local
123 if (randmax < genmax) in randint_genmax()
129 randint rmax = randmax; in randint_genmax()
153 randmax = shift_left (randmax) + UCHAR_MAX; in randint_genmax()
156 while (randmax < genmax); in randint_genmax()
159 if (randmax == genmax) in randint_genmax()
161 s->randnum = s->randmax = 0; in randint_genmax()
176 randint excess_choices = randmax - genmax; in randint_genmax()
178 randint last_usable_choice = randmax - unusable_choices; in randint_genmax()
184 s->randmax = excess_choices / choices; in randint_genmax()
191 randmax = unusable_choices - 1; in randint_genmax()