Latest mutuallyexclusive Activity
The proposal by fastcall22 is the usual solution where you get an answer with one draw, and one walk over the original list until you find the item that you should get. It's a few lines of code:
float sum = 0;
foreach (KeyValuePair<string, float> pair in probabilities) sum += pair.Value;
floa…
Advertisement
Advertisement
Advertisement