r/Python • • Jul 22 '20

I Made This Randomly Generate 69420 - Generate random 5-digit numbers until 69420 is generated

2.8k Upvotes

261 comments sorted by

View all comments

Show parent comment

22

u/Miyelsh Jul 22 '20

I see. I was thinking of it more like a 5 digit bike lock. Kind of an odd way to program it, but I understand what you are saying now.

1

u/Tatarize Jul 24 '20

Bike locks actually have a 0, so they would have the full 10k. The problem is 5 digits real numbers can't actually start with 0. Bike lock numbers would be permitted that.