Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

choice random word in python from a text file

import random
print(random.choice(open('file.txt').read().split()).strip())
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #choice #random #word #python #text #file
ADD COMMENT
Topic
Name
8+8 =