I am trying to place objects randomly within the boxes with a grid.
I am using this method to draw the grid:
void ofDrawGrid(float stepSize=1.25f, size_t numberOfSteps, bool labels=false, bool x=true, bool y=true, bool z=true)
I know you can generate random numbers between certain limits. What I am trying to work out is how I can use the stepSize and number of steps in the grid method to calculate generate random x and y coordinates for my object to ensure it is in the grid boxes