add children in a random position to grid container

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By lalel345

I have a grid container and I am going to add several children but I want each time I do this to appear in a different and random place in the grid container

:bust_in_silhouette: Reply From: cascas

Because gridcointainers always display their children in order you could fill the whole gridcontainer with empty nodes and then randomly select children to swap out.

This is actually the only way to achieve that.
Another option would be to use the base Container node.

Wakatta | 2021-01-24 15:25