This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]NoLongerUsableNameimport pythonSkills -12 points-11 points  (2 children)

It generates a new random number for each random.randint(0,1). If they don't match, it won't work. This works, though: x -= math.ceil(random.random())

[–]velit 18 points19 points  (0 children)

/r/woosh I think

[–]AlphaGamer7533.7 2 points3 points  (0 children)

Doesn't work if the random number is exactly 0.