How to make options that must include the correct answer
I would like to make a game which like a quiz (random question and random answers (including correct and wrong)), how can i make sure it can random a correct answer for player to choose in every round? Let's say,
2 + 2 = ?
Make sure 4 must be appear. I was just used (random(1,10)).That mean, it must appear (5, 8, 9) or (5, 5, 3).
How can I fix the answer choices which must include 4 and not repeating show the neighbour numbers? if only using "if".."do", it is very long nest loop. Any other way to avoid?