+ 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!
2 Réponses
+ 9
Can you please post your code, so that we can see where the devil lies in the detail?
+ 9
import random
random.seed() #everytime you run your program the random values are generated from a new seed