how to retrieve random words from a file in python code example
Example: choice random word in python from a text file
import random
print(random.choice(open('file.txt').read().split()).strip())
import random
print(random.choice(open('file.txt').read().split()).strip())