I'm working on a problem that involves probability and random number generator that I believe I am close with but need help hammering out one last thing. I have a marble bag in which I will enter the number of marbles that are of different color. Meaning Red 10 green 5 blue 5 orange 3. I have to infer the probability of each colored marble, then randomly generate number of marbles based on that probability. So Far I can calculate the probability as so 

```
  int MarbleCnt = red + green + blue + orange;
  double probRed = (double)red / MarbleCnt;
  double probGreen = (double)green / MarbleCnt;
  double probBlue = (double)blue / MarbleCnt;
  double probOrange = (double)orange / MarbleCnt;

```

then I plan to use the `Random().NextDouble` to be used to decipher out which marble was picked this is my code:

```
for (int i = 0; i < 10; i++) {
    double randNum = mRandom.NextDouble();             
    if (0 <= randNum && randNum < probRed) { probArr[i] = RED_MARBLE; }
    else if (probRed <= randNum && randNum < probGreen) { probArr[i] = GREEN_MARBLE; }
    else if (probGreen <= randNum && randNum < probBlue) { probArr[i] = BLUE_MARBLE; }
    else  { probArr[i] = ORANGE_MARBLE; }
}

```

My issue is what do I do if I have the same number of marbles, Meaning I have 10 red and 5 blue and 5 orange what do I need to do to decipher to pick a blue or an orange.