If you want it to not happen, you need to keep track of all your Y values and if they are +/- a certain amount of each other, then generate a new random number until you find one you are happy with.
So, you would need to generate a random number, check it against a list and calculate if it’s too close to existing Y positions. If not, place your object. If it’s too close, generate a new Y value.
Bro actually thank you for help but im not very good at coding and if i say i understand i would’ve lie to you, if you have any time to write can you make it with example?
Instead of one of us trying to laboriously hammer all that back into a tiny little box just for you, why not go look up any one of the millions of discussions and/or tutorials already on the internet?
Because i didin’t understand that so didin’t have the right question, nobody wants to wait ofcourse i did look but couldn’t find with my questions maybe because of its my english.
So im really grateful that you show me the right one now i can move on.