Print the contents of the file "/etc/hosts", add a random number to each line, sort the lines by the random number, and then remove the random number from each line.
cat /etc/hosts | awk '{print(rand()" "$0)}' | sort -n | cut -f2- -d' '