Searched refs:permutation (Results 1 – 2 of 2) sorted by relevance
238 size_t const *permutation) in write_permuted_output_reservoir() argument242 const struct linebuffer *p = &lines[permutation[i]]; in write_permuted_output_reservoir()302 size_t const *permutation) in write_permuted_lines() argument306 char *const *p = line + permutation[i]; in write_permuted_lines()319 size_t const *permutation, char eolbyte) in write_permuted_numbers() argument323 unsigned long int n = lo_input + permutation[i]; in write_permuted_numbers()390 size_t *permutation = nullptr; in main() local567 permutation = randperm_new (randint_source, ahead_lines, n_lines); in main()591 i = write_permuted_output_reservoir (n_lines, reservoir, permutation); in main()594 permutation, eolbyte); in main()[all …]
4728 like a random permutation of the inputs (@pxref{shuf invocation}),5167 @command{shuf} shuffles its input by outputting a random permutation5168 of its input lines. Each output permutation is equally likely.5227 permutation to generate. @xref{Random sources}.5235 option the output is not a permutation of the input; instead, each