Skip to content

Instantly share code, notes, and snippets.

@matschaffer
Created February 8, 2013 03:54
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 matschaffer/4736483 to your computer and use it in GitHub Desktop.
Save matschaffer/4736483 to your computer and use it in GitHub Desktop.
import sys
import numpy as np
import matplotlib.pyplot as plt
import csv
with open('names.csv', 'rb') as csvfile:
csvreader = csv.reader(csvfile)
people = []
for row in csvreader:
people.append(row)
x = np.random.permutation(np.arange(0, len(people)))
i = 0
while i < len(x):
sys.stdin.read(1)
print people[x[i]]
i += 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment