All you need to do is verify whether an object is overlapping another, and if so, set that object to a random position again. It'll change its position until it's no longer overlapping.
Ahh really thanks Gwerneck for your info, the problem already solve, so i use the method "random" with while and object is overlapping, but at the first click, the function will not run, but for second click and so on, the function work perfectly.
Yep, you'll have to create a loop that is repeating as long as at least one object is overlapping.
Yeah thank you randomly, but i dont know, why the function not run at first click, but for second click and so on, the function work perfectly.