I have the following setup: In an exam are N exercises. An exercise can have V variations (defined as V[N]), which can differ from other exercises. I put my students in G groups