When I have a random number generated, how do I get a class to appear in a location related to the number generated??
For instance a bingo grid, I generate a number 5, how do I make my counter subclass place in the correct location on the grid??


int rand = Greenfoot.getRandomNumber(rows*cols); int x = topLeftX+hGap*(rand%cols); int y = topLeftY+vGap*(rand/cols);