+ 1

What code makes it so that when it repeats my random words script that it still randomly generate words?

I have this script that randomly generates a verb, adj. and a noun and i have it set up to randomly get picked by 16 of each but when i got it to ask you if you want to do it again but when it repeats the script it gives me the same words as when it ran the first time. Help!

7th Mar 2017, 4:15 PM
Matthew Williams
Matthew Williams - avatar
2 Answers
+ 9
Can you please post your code, so that we can see where the devil lies in the detail?
7th Mar 2017, 9:04 PM
Senfman
Senfman - avatar
+ 9
import random random.seed() #everytime you run your program the random values are generated from a new seed
8th Mar 2017, 2:12 AM
LayB
LayB - avatar