Created
April 8, 2019 13:34
-
-
Save samplereality/7fdd5b1fa4d0b3a354e0dab77d2d7fc3 to your computer and use it in GitHub Desktop.
Quick Python script to randomize @mobydickatsea's tweets, run 7 times before each new cycle of the collection of lines.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import random | |
lines = open('mobytweet.txt').readlines() | |
random.shuffle(lines) | |
open('mobytweet.txt', 'w').writelines(lines) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment