> awk 'BEGIN {ORS =" "} {print $1}{print (rand()*2-1)*7}{print > (rand()*2-1)*7}{print "\n"} '|\ You will get SQRT(7^2+7^2)=9.9 dE max distance and square section of Your distribution. My method gives round section of distribution with true radius 7. I have began from Your formula, but then change it by circle equation.