Probability Calculator prpblem

Tell us what’s happening:
My problem is only with the third test. I have seen 2 problems. First, the object created has to be [‘blue’, ‘blue’, ‘blue’, ‘red’, ‘red’, ‘green’, ‘green’, ‘green’, ‘green’, ‘green’, ‘green’] and mine is [‘blue’, ‘blue’, ‘blue’, ‘blue’, ‘red’, ‘red’, ‘green’, ‘green’, ‘green’, ‘green’, ‘green’, ‘green’] so mine has one blue more. I really don’t know why it doesn’t work on this test and it does work in the others.
The second problem is that when the test uses the draw method, the result is always [‘green’, ‘green’, ‘green’, ‘blue’]. I will really appreciate the help you could give me.

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/102.0.5005.115 Safari/537.36

Challenge: Probability Calculator

Link to the challenge:

You’ll need to post a link to your code. Preferably on repl.it.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.