Is there a way to randomize a set string, like you can for integers?
I'll give an example:
import random
random.randint(1, 30) #will produce random number between 1 and 30
And for a string I would like to randomize words from a set variable:
a="off","it","on","not"
random.randstr(a) #I understand that this isnt a real code and will produce and error
Is there an easy way to make this possible?
randstrbychoiceand off you go.