diff options
-rw-r--r-- | shuf.sh | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -7,6 +7,7 @@ exec awk "$(tail -n +2 $0)" "$@" END { nprinted = 0; + srand(); while (nprinted < NR) { line = int(rand() * NR); if (!printed[line]) { |
index : moreutils | ||
implementations of the non-POSIX utilities included in GNU coreutils |
summaryrefslogtreecommitdiff |
-rw-r--r-- | shuf.sh | 1 |
@@ -7,6 +7,7 @@ exec awk "$(tail -n +2 $0)" "$@" END { nprinted = 0; + srand(); while (nprinted < NR) { line = int(rand() * NR); if (!printed[line]) { |