--Place number of hay bails in matrix local x,y,z for count = 1,options.b 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 objects[count] = createObject ( 3374, x * -4, y * -4, z * 3, randInt ( 0, 3 ) * 90, randInt ( 0, 1 ) * 180 , randInt ( 0, 1 ) * 180 ) --Note 4 end