Skip to content

Instantly share code, notes, and snippets.

@supercavitation
Created September 4, 2013 05:26
Show Gist options
  • Save supercavitation/6433057 to your computer and use it in GitHub Desktop.
Save supercavitation/6433057 to your computer and use it in GitHub Desktop.
import numpy.random as random
from time import clock
N=100000000
u=range(0,N)
x=random.randint(0,N,N/100)
y=0
for i in xrange(0,N,random.randint(0,N/100)):
if i>len(u):
break
u.insert(x[y],i)
y+=1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment