Random position without overlapping

ok i found my problem, i didnt use your moussePressed function so its run infinitely