Random select with gradient

I have a bunch of geometry on a planar xz and wish to randomly select certain percentage with a gradient along x axis. How can I acheive that?

Hello,like this?


XRandom.gh (15.8 KB)