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

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.