Skip to content

Instantly share code, notes, and snippets.

@claudijd
Created November 6, 2018 21:30
Show Gist options
  • Select an option

  • Save claudijd/7c5df8f65cc3def529f5815f0ea4fa55 to your computer and use it in GitHub Desktop.

Select an option

Save claudijd/7c5df8f65cc3def529f5815f0ea4fa55 to your computer and use it in GitHub Desktop.
import random
emails = []
sample_size = 20
with open("emails.txt") as f:
for line in f:
emails.append(line)
for email in random.sample(emails, 20):
print(email.rstrip())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment