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.
1,324 Comments - Last post 14 minutes ago by DaveFerret
30 Comments - Last post 30 minutes ago by Microfish
1,410 Comments - Last post 55 minutes ago by xInfinityJoako1
15,399 Comments - Last post 1 hour ago by UN0W3N
8,473 Comments - Last post 1 hour ago by MyLifeGameRU
1,082 Comments - Last post 1 hour ago by MysteriousMrX
46,823 Comments - Last post 5 hours ago by FranckCastle
119 Comments - Last post 7 minutes ago by Tcharr
7 Comments - Last post 16 minutes ago by Tcharr
65 Comments - Last post 18 minutes ago by Kuzurreesh
126 Comments - Last post 25 minutes ago by BoBsync
29 Comments - Last post 27 minutes ago by inmate66
96 Comments - Last post 44 minutes ago by Kyog
26,483 Comments - Last post 46 minutes ago by Lemur511
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.