cookiesaredelicious
✅ Random character generator
Hello, as a beginner, I am currently working on making a simple lottery simulator. However, I didn't know how to generate a sequence of 8 letters and numbers. Naturally, I searched it up and I got the answer. But copying chunks of code wouldn't help me learn and I can't seem to wrap my head around how this works. I understand the variables, but I can't just seem to understand what the variable i does and why i = 0. Would anyone be kind enough to explain the for statement and what each argument does. Thank you so much 🙏
13 replies