print(np.random.dirichlet(np.ones(10), size=1))
print(np.random.dirichlet(np.ones(10) / 1000.0, size=1))
print(np.random.dirichlet(np.ones(10) * 1000.0, size=1))
Generating a list of random numbers, summing to 1