Something
public lua v1 · immutable--Place number of hay bails in matrixlocal x,y,zfor count = 1,options.b dorepeatx = randInt ( 1, options.x ) --Note 1y = 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 4end