Hello,
No, that won't work. The method I posted is alternative to Sample Position. Instead of sampling a random position n times until you find a valid ones, you calculate the closest valid one off a random point.
I'll give you an example when I'm in front of the PC, but from memory you need...