from random import randrange, uniform
# randrange gives you an integral valueirand = randrange(0, 10)
# uniform gives you a floating-point valuefrand = uniform(0, 10)
import openturns as otpoints = [[i] for i in range(10)]distribution = ot.UserDefined(points) # By default, with equal weights.for i in range(12):x = distribution.getRealization()print(i,x)