Skip to content

Instantly share code, notes, and snippets.

@Arsh25
Created November 26, 2016 01:54
Show Gist options
  • Save Arsh25/b99c927a4c19131c8d419865c06c566b to your computer and use it in GitHub Desktop.
Save Arsh25/b99c927a4c19131c8d419865c06c566b to your computer and use it in GitHub Desktop.
import random
def randommize_wordlist(file_name,out_file):
output = open(out_file,'a')
with open(file_name,'r') as word_list:
words = [line.strip() for line in word_list]
output.write(random.choice(words)+'\n')
if __name__ == "__main__":
for i in range(0,251):
randommize_wordlist("words_list.txt","random.txt")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment