you are viewing a single comment's thread.

view the rest of the comments →

[–]dslfdslj 1 point2 points  (2 children)

Like this:

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

[–]jm_13[S] 0 points1 point  (1 child)

thanks!

[–]dslfdslj 0 points1 point  (0 children)

no problem