I need to randomize an NSArray that I have loaded with quiz questions. I have read other posts about randomizing NSArray, but I need to keep the elements in a specific order.
The array format is as follows:
@"Question1",@"ans1",@"ans2",@"ans3",@"ans4",@"correct answer",
@"Question2",@"ans1",@"ans2",@"ans3",@"ans4",@"correct answer",
and so on...
I would like to shuffle the array while keeping all these sets of 6 (the question and answer choices) next to each other. Any suggestions would be greatly appreciated.
Thank you.
The array format is as follows:
@"Question1",@"ans1",@"ans2",@"ans3",@"ans4",@"correct answer",
@"Question2",@"ans1",@"ans2",@"ans3",@"ans4",@"correct answer",
and so on...
I would like to shuffle the array while keeping all these sets of 6 (the question and answer choices) next to each other. Any suggestions would be greatly appreciated.
Thank you.