H M Gordon,
It sounds like what you really want to do is when creating your quiz, under Layout, you want to set the Question order to Shuffled randomly. Then when adding the questions, YOU select the questions you want from the question bank category list, and add them to the quiz. This will ensure that the students all get the same questions, just not in the same order.
I suspect that when you made your quiz, you were using the "Add a random question ..." button, while Editing the quiz. If you do, you need to have a very large question bank compared to the number of questions you want to have in the quiz, or you WILL get repeats.
It's been a long time since I read about it, but the Moodle documentation or forums, used to have an explanation of why you can wind up with "2-peats and 3-peats" when using randomized questions. If I remember correctly, the odds of getting a repeat goes up a bunch, when the number of questions you have in your quiz gets anywhere close to even half the total number available in the question bank.
I use that "Add a random question ..." button two ways. I have a random quiz class with numerous 10 question random quizzes on different subjects. I let students take them on their own so they can "memorize" how to do things in my computer applications class as we have no books and no table space to be able to take notes with pencil and paper.
The other way I use it, is when giving a small test on multiple subjects. Since I am pulling only 4 or 5 questions from multiple banks of 40 or 50 questions, it is unlikely they will get repeats.
Hope this helps,
AL