It seems exactly what I need, but It is confusing a small bit to me. I will have to dissect it.
I understand how to use it as it is, but would like to know a small bit more.
Why are you setting r1 and r2 to random(1) instead of just setting it to 1?
How is it picking a random point? The only random I see is random(1).
I never used or seen a random without two limits. Random(0, 10) etc.
Can you give a simple explanation for the rX and rY formula?
I do notice that one controls the X and one controls the Y.