Searched refs:choices (Results 1 – 2 of 2) sorted by relevance
39 randint choices = strtoumax (argv[2], nullptr, 10); in main() local44 printf ("%ju\n", randint_choose (ints, choices)); in main()119 randint choices = genmax + 1; in randint_genmax() local177 randint unusable_choices = excess_choices % choices; in randint_genmax()179 randint reduced_randnum = randnum % choices; in randint_genmax()183 s->randnum = randnum / choices; in randint_genmax()184 s->randmax = excess_choices / choices; in randint_genmax()
50 randint_choose (struct randint_source *s, randint choices) in randint_choose() argument52 return randint_genmax (s, choices - 1); in randint_choose()