Sep 12, 2016 Randomizing an Array with Sort How to randomize an array? Use the sort command, with the option: 12-R, --random-sort sort by random hash of keys For example: 12345678910111213141516171819202122$ seq 1 10 | sort -R42106397581$ seq 1 10 | sort --random-sort96132875410