Consider the range [0,100]. Suppose I want to sample N points from this range, but I want to "cluster" my samples around 50 (or any number in the range) and sample exponentially fewer points the closer I get to 0 or 100.

How can I accomplish this in Python?

Thanks