How do I get sprites to respawn?

hello I need some help with Codea.
I am making a game where sprites fall down the screen but I don’t know how to make the sprites spawn back at the top of the screen.I also want the sprites to spawn back at a random spot on the y axis.
Thanks.

Look at the Bit Invader example - it does both the things you are asking about