Bodge-it Wiki
Advertisement

some of these suggestions were sources from here




shuf -n 1 $FILE
head -$((${RANDOM} % `wc -l < file` + 1)) file | tail -1
cat $FILE | sort --random-sort | head -n 1



perl -e 'srand; rand($.) < 1 && ($line = $_) while <>; print $line;' filename



psuedo random integer bash


http://tldp.org/LDP/abs/html/randomvar.html


wordnet

http://linuxgazette.net/issue27/ayers3.html

Advertisement