Animation Nodes. Distribute objects based on distance
I found a quite simple solution. The Map Range node has an interpolation input where we can plug the Interpolation from Curve Mapping node. So we can adjust the mapping of a random value with a curve. See below: