sample one point from distribution python

45

numpy.random.choice(numpy.arange(1, 7), p=[0.1, 0.05, 0.05, 0.2, 0.4, 0.2])

Comments

Submit
0 Comments