Animation Nodes. Distribute objects based on distance I have an Animation Nodes tree where I distribute characters based on random values on Y and Z axis as you can see below.



But viewing from that camera angle (the perspective view) the upper part of the picture is too dense.



So as long as I use the random function it distributes the characters "evenly" in space, but I need a control to decrease the amount of the objects based on the camera distance gradually. Is it possible with Animation Nodes?
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: