how to display random images?

I am making a game similar to doodle jump how do I make the platforms spawn randomly so they aren’t the same every time?

You would create a pool of images (in a table for instance) then when you go to spawn one you would pick one, with the assistance of math.random to give you a random image to pick out of the table.

Also ensure to use math.randomseed( os.time() ) to seed the random number genrator to give you more random results.

Hooe this helps!

You would create a pool of images (in a table for instance) then when you go to spawn one you would pick one, with the assistance of math.random to give you a random image to pick out of the table.

Also ensure to use math.randomseed( os.time() ) to seed the random number genrator to give you more random results.

Hooe this helps!