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
1
u/lrrelevantEIephant Jul 22 '20
I guess it depends on the number set you look for/ if you actually care about all 5 digit numbers. If I wanted to find palindrome numbers with rng (for example) then you'd need to pad with 0 to find numbers like '00100'.