Skip to content

Instantly share code, notes, and snippets.

@ehmo
Created March 1, 2013 15:37
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 ehmo/5065450 to your computer and use it in GitHub Desktop.
Save ehmo/5065450 to your computer and use it in GitHub Desktop.
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import random
import time
n = 10000000
t0 = time.time()
l = range(n)
random.shuffle(l)
print 'took %.3f seconds' % (time.time() - t0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment