Displaying many identical things

I trying to display many identical object at once, i thought about tables of course, but cant figure out how to use them to display all that things in random coordinates or exact points
Every help is appreciated

[code][lua]_W = display.contentWidth
_H = display.contentHeight

local physics = require(“physics”)
physics.start()
physics.setGravity(0,1)
local ball = display.newCircle(_W/2,_H/2,15)
physics.addBody(ball, {friction=1,density=1,bounce=1,radius=15})
ball:setLinearVelocity(2,40)

local tablesome = {}

function createballs()
for i=1, 1,10 do
ball = display.newCircle(math.random)
end
end

[/code][/lua]

[import]uid: 16142 topic_id: 11805 reply_id: 311805[/import]

Take a look at the physics project in SampleCode for spawning lots of physics crates; that’s a good starting point :slight_smile: [import]uid: 52491 topic_id: 11805 reply_id: 43018[/import]

thanks for answering, i’ll definetly do that [import]uid: 16142 topic_id: 11805 reply_id: 43028[/import]