Generate 10 random numbers between 0 and 10, and for each number, compare the contents of the file with the same contents sorted in numerical order.
shuf -i 0-10 -n 10 | xargs -I file diff <(cat file) <(sort -n file)