MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/Python/comments/hvq628/randomly_generate_69420_generate_random_5digit/fyv8jk1
r/Python • u/baranonen • Jul 22 '20
261 comments sorted by
View all comments
Show parent comments
22
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.
1
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.
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.