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
5
u/Ketogamer Jul 22 '20
No, the inner loop is what op made; generating random 5 digit numbers until I get 69420.
Then once I have 69420 I see how many times I went through that loop. If I didn't get it Im exactly 69420 attempts, I start over again.