Random generation of object over time (Fixed)

Okay, so my code looks like this

What I want to happen the game creates a grid of grid squares. Then it waits a random amount of time, then makes a tree appear on one of the tiles. Then it waits again then spawns a new tree at a new spot.

You want to gues what it does?

It waits…

It spawns a tree in every grid square! Not all at once but still.

Someone please help me.

I don’t have the time to test this…
i was just passing by…but
why there is a repeat 100 times with no conditions or actions?

I don’t know just trying to get to work

I fixed it tho