I get a different probability than what is needed to pass - I get .186 instead of .272 required in the solution.
I think it has something to do with my use of random - choice. I tried some other variants - random int, random sample…but it still doesn’t pass (but it makes a small difference to my probability). So I might have gone wrong somewhere else in my code, I just don’t understand where.
Would anyone be able to take a look?
Your code so far
Your browser information:
User Agent is:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.101 Safari/537.36
Challenge: Probability Calculator
Link to the challenge: