I need to draw 8 random numbers (from 1 to 4). The numbers can only repeat once. I need there to be two 1s, two 2s, two 3s, and two 4s in random order. I need them put into an array.
Example Output: 1,3,4,2,4,1,3,2 or 3,1,1,4,3,2,2,4 (I'm sure you get the idea!)
It would now equal:
Code:
intNumbers[8] = {1,3,4,2,4,1,3,2};
This is a small piece of a bigger project, so I not just on here asking for answers. I really need help with this one. I've been staring at the same 10 lines for several hours now.
Thanks in advance for any help!
Tin