Created
March 1, 2013 15:37
-
-
Save ehmo/5065450 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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