Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

choose a random snippet of text

import random
line = random.choice(open('data.txt').readlines())
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #choose #random #snippet #text
ADD COMMENT
Topic
Name
1+2 =