Home
last modified time | relevance | path

Searched refs:randint_choose (Results 1 – 5 of 5) sorted by relevance

/coreutils/gl/lib/
Drandint.h50 randint_choose (struct randint_source *s, randint choices) in randint_choose() function
Drandperm.c172 v[0] = randint_choose (r, n); in randperm_new()
226 size_t j = i + randint_choose (r, n - i); in randperm_new()
Drandint.c44 printf ("%ju\n", randint_choose (ints, choices)); in main()
/coreutils/src/
Dshuf.c217 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()
Dshred.c752 if (n == (size_t) k || randint_choose (s, k) < n) in genpattern()
799 swap = n + randint_choose (s, top - n); in genpattern()