One submit button for the exam + get the questions in random order

Hello I wanna put one submit button for the exam and get the questions in random order. Is it possible to get random questions while i put each problem in the same block?