def create_data():
	from scipy import stats
	from numpy import random, arange, linspace
	from random import shuffle,uniform
	from numpy.random import random_sample


	dists=stats.powerlaw
	sample=random.randint(5000,15000)
	#uground=dists.rvs(1.5,size=sample)
	uground = random_sample(30000)*200

	minv,maxv=uground.min(),uground.max()

	a = list(uground)

	sample_N=random.randint(4,25)
	for i in range(sample_N):
		Size=random.randint(1500,10000)
		Scale = uniform(0.005*(maxv-minv),0.02*(maxv-minv))
		a += list(stats.norm.rvs(loc=uniform(minv,maxv),scale=Scale,size=Size))
		print uniform(minv,maxv)
	return a


def plot_data(a):

	from matplotlib import pyplot

	pyplot.hist(a,bins=200)
	pyplot.show()

plot_data(create_data())
