This. You need to add the the list, if you just use a = sign it'll overwrite the value each loop.
Comment has been collapsed.
Don't know what you're trying to do exactly but using static seeds will always produce the same output. Computers are deterministic systems so the same starting conditions will always lead to the same results.
If that's not what you're trying to do, what you could do instead is generate a GUID then hash it and use it as a seed.
edit: ok guess you wanted fixed results
Comment has been collapsed.
Comment has been collapsed.
put on hold as off-topic by grego87 ♦ 1 hours ago
This question appears to be off-topic. The users who voted to close gave this specific reason:
- "This question was caused by a problem that can no longer be reproduced or a simple typographical error. While similar questions may be on-topic here, this one was resolved in a manner unlikely to help future readers. This can often be avoided by identifying and closely inspecting the shortest program necessary to reproduce the problem before posting." – grego87 ♦
If this question can be reworded to fit the rules in the help center, please edit the question.
Comment has been collapsed.
90 Comments - Last post 15 minutes ago by CelticBatman
13 Comments - Last post 42 minutes ago by sensualshakti
50 Comments - Last post 3 hours ago by anditsung
46,873 Comments - Last post 5 hours ago by marilynhanson
371 Comments - Last post 9 hours ago by Vodeni
38 Comments - Last post 10 hours ago by doslover
560 Comments - Last post 10 hours ago by ObsidianSpire
230 Comments - Last post 41 seconds ago by CBlade
525 Comments - Last post 3 minutes ago by CBlade
14 Comments - Last post 18 minutes ago by CBlade
156 Comments - Last post 51 minutes ago by Rinocap
6,774 Comments - Last post 2 hours ago by Tristar
65 Comments - Last post 2 hours ago by refat17
500 Comments - Last post 2 hours ago by Fitz10024
hewwo
I'm having trouble with the following Python script:
I thought it would generate a number of random alphanumeric codes but the only output I get when I run it is a single character:
I already posted it on StackOverflow and a bundle of people kept saying it's a "one character fix", but that just seems to be repeating my problem!
Can anybody help? You should be able to execute it online here.
Comment has been collapsed.