I am not sure if I phrased the title properly. What I am trying to achieve is the following:
Red card: 10%
Blue card: 20%
Green card: 15%
Nothing card: 10%
Now a player has the chances above to win those cards but how would that look like in code?