random expressions

I’d like to create an expression to randomly delete points on a grid. Has anyone already done this / similar?

grid-> sort SOP (random) ->delete SOP (delete as many points as you want)