I have send out an email earlier this week that sketches out changes
to the `shuf' program that would allow for random permutations with
replacement ("--with-replacement" switch).
For example:
shuf <<EOF
clubs
hearts
diamonds
spades
EOF
might output:
clubs
diamonds
spades
diamonds
Please let me know what you think of this feature. If we can add it to
`shuf', I would be happy to clean up the patch.
Thanks,
--
Alexander Horn
http://www2.truman.edu/~ah428