using:
Image[] icons = { image12, image9, image11, image12, image10, image9, image11, image1, image12, image9, image11, image10, image12, image9, image10, image11, image9, image10, image12, image11 };
for (int i = 0; i < 20; i++)
{
newicon[i] = icons[rnd.Next(0, 19)];
}
I am attempting to take the list of "icons" and scramble them without repeating them
basically I need 1 image1, 5 image9, 4 image10, 5 image11, and 5 image12's to output, But no more than that amount of each. Everything I have tried ends up with more other images and no image1 or multiple image1's.
I have done this with numbers, which tends not to be a problem, but I can not figure out the images. Also I cant find anything on shuffling images in a list without repeating.