Searched refs:randint_choose (Results 1 – 5 of 5) sorted by relevance
/coreutils/gl/lib/ |
D | randint.h | 50 randint_choose (struct randint_source *s, randint choices) in randint_choose() function
|
D | randperm.c | 172 v[0] = randint_choose (r, n); in randperm_new() 226 size_t j = i + randint_choose (r, n - i); in randperm_new()
|
D | randint.c | 44 printf ("%ju\n", randint_choose (ints, choices)); in main()
|
/coreutils/src/ |
D | shuf.c | 217 randint j = randint_choose (s, n_lines + 1); /* 0 .. n_lines. */ in read_input_reservoir_sampling() 341 unsigned long int j = lo_input + randint_choose (s, range); in write_random_numbers() 358 const randint j = randint_choose (s, n_lines); in write_random_lines()
|
D | shred.c | 752 if (n == (size_t) k || randint_choose (s, k) < n) in genpattern() 799 swap = n + randint_choose (s, top - n); in genpattern()
|