I have 5 pieces and I want them to be randomly distributed when showing

So that each piece takes the place (x,y) of the other ??

How do I do that?

???

I have 5 pieces and I want them to be randomly distributed when showing

So that each piece takes the place (x,y) of the other ??

How do I do that?

???

- If you need a random position, then when setting the position of the object, use the
`Random`

or`RandomInRange`

function. - If you want to “swap” objects, then you need to use variables to remember the locations of the data of all objects. And when placing, check if this place is occupied, then install it in another.