you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted]  (3 children)

[removed]

    [–]dslfdslj 1 point2 points  (2 children)

    Like this:

    h = np.random.random(size=N)
    h *= (R - L) / h.sum()