Okay, this question may be very confusing or i could be overthinking it, i am using C# and trying to make a program to randomize entries for an event. I have the program working well enough for enterting the entries but im stuck at randomizing it. Basically, i have 2 lists call one Head and one Heel. I have the lists as follows [1,2,3,4,5,6,7,8,9,10] and [1a,2a,3a,4a,5a,6a,7a,8a,9a,10a]. Basically i want each item in the first list to have 2 random partners from list 2, but nobody from list 2 can be matched more than twice at the end of it all. In the final output each entry should be listed twice and only twice.
Hopefully someone understands and is able to help me, thanks.
Aucun commentaire:
Enregistrer un commentaire