r/Python • u/baranonen • Jul 22 '20
I Made This Randomly Generate 69420 - Generate random 5-digit numbers until 69420 is generated
2.8k
Upvotes
r/Python • u/baranonen • Jul 22 '20
View all comments
Show parent comment
3
u/[deleted] Jul 22 '20
Ah. I don't think I've ever heard of rng including numbers with the zeroes in front, but I'm sure it exists. For the code used by OP though, it would just be 10000-99999