need help on why my code isnt running as intended
i am making a a prank game of spin to win for my friend’s upcoming bday
however, i seem to be running on a lot of problems for my code
i used python as backend and html css js as frontend and used flask to make sure the website runs the python code
however the problem is that neither the website nor the code is running as expected
it needs to be spin multiple times to get one result
it gives result of values whose probability i have set to 0
and it frequently gives 40 and 50 as answer even tho the values with highest probability are 10 and 20
the values are 10, 20, 30, 40, 50, 60, 70, 80, and 90 by the way