Looking to shuffle four variables (trying to change the order they appear in on a multiple choice list).
I've been poking around for a while but I can't quite get my head around the logic, and looking up random shuffles in past questions gives super-detailed algorithms that are beyond my newbie skills (and the needs of this program I'm trying to write, I'd just like to make a multiple-choice image picker).
Ideally I'd like something that follows this pseudocode:
// int Answer1 = Random(min1 max4)
// int Answer2 = Random(min1 max4)
// int Answer3 = Random(min1 max4)
// int Answer4 = Random(min1 max4)
// If Answer 1 equals ANY of the other three, re-randomize Answer1 and loop.
// Loop through this cycle for all answers.
I'd post my current regular code, but frankly, it's garbage. :( This seems like a simple enough problem but I just can't get it right.
Thanks in advance!