Skip to content

Instantly share code, notes, and snippets.

@samplereality
Created April 8, 2019 13:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save samplereality/7fdd5b1fa4d0b3a354e0dab77d2d7fc3 to your computer and use it in GitHub Desktop.
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.
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