Skip to content

Instantly share code, notes, and snippets.

@prasadtalasila
Last active November 28, 2017 00:39
Show Gist options
  • Save prasadtalasila/fdb6adee70f0e62ea3716ffa93f2ce1d to your computer and use it in GitHub Desktop.
Save prasadtalasila/fdb6adee70f0e62ea3716ffa93f2ce1d to your computer and use it in GitHub Desktop.
create a random arrangement of an input sequence (good for exam seating arrangements)
$seq <first_no> <last_no> | shuf
If we have pre-determined list of students, we can use "shuf" command to generate the random permutation of the students
and then give them a sequential seating order.
$shuf student_list.txt > random_order_list.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment