Spawning across the screen

How can I spawn objects anywhere across the screen like on this picture:

And I want to that objects are displayed like circle.

So,can someone explain this?

I saw every tutorial for spawning objects but I can’t find this.

Thanks for everything!

Here is my code:

 local spinner = display.newImage( "circle.png") spinner.x, spinner.y = display.contentCenterX, display.contentCenterY spinner:scale(2,2) local adjustment = 0 local PI = 3.14159265358 local function onTouch(e) if(e.phase == "began") then local dx = e.x - spinner.x local dy = e.y - spinner.y adjustment = math.atan2(dy,dx) \* 180 / PI - spinner.rotation end if(e.phase == "moved") then local dx = e.x - spinner.x local dy = e.y - spinner.y spinner.rotation = (math.atan2(dy,dx) \* 180 / PI) - adjustment end end Runtime:addEventListener('touch', onTouch)

Did you want the spawning to happen in random places? 

Did you want the spawning to happen in random places?