--Place number of rocks in matrix for count = 1,options.r do repeat x = randInt ( 1, options.x ) --Note 1 y = randInt ( 1, options.y ) z = randInt ( 1, options.z ) until (matrix[x][y][z] == 0) --Note 2 matrix[x][y][z] = 1 --Note 3 createObject ( 1305, x * -4, y * -4, z * 3, randInt ( 0, 359 ), randInt ( 0, 359 ), randInt ( 0, 359 ) ) --Note 4 end