How to distribute n questions to n students with all students having the same questions but in different orders.

27 Views Asked by At

I am building an online exam platform. Let's say I have an MCQ test of 20 questions and say 60 students in a class. Is there a mathematical function or probability that I can compute to in a way that each student receives all 20 questions but randomized uniquely such that question 1 for Student A may be question 12 for Student B and so on and so forth.

1

There are 1 best solutions below

3
On

The simplest approach is to give each student the questions in a random order. For each student, draw a random number on $[1,20]$ for the first question, then on $[1,19]$ for the second one (choosing among the ones remaining for that student) and so on. Assuming your random number generator is not badly messed up, the chance of two students getting the same list is small. This won't guarantee that each question comes first for three students, but do you care about that?