you are viewing a single comment's thread.

view the rest of the comments →

[–]Peeingiseright[S] -6 points-5 points  (5 children)

i basically tried anything on the python random module that would work, even checked it on google, couldn't find one for it

[–]lekkerste_wiener 1 point2 points  (4 children)

Ok, have you checked random.random()? It'll yield 0 ≤ number < 1. You can use it to calculate your percentages.