//SOLUTION
import java.util.Random;
/**
 * Creates a drawing of random red circles
 *
 * @author Kathleen O'Brien
 */
public class SquaresGalore
{
    public static void main(String[] args)
    {
        final int MAX_X = 300;
        final int MAX_Y = 500;
        final int MIN_X = 0;
        final int MIN_Y = 100;
        final int NUMBER_OF_SQUARES = 20;
        final int SIDE = 25;

        Random gen = new Random(34682489);

        for (int i = 0; i < NUMBER_OF_SQUARES; i++)
        {
            int x = gen.nextInt(MAX_X - MIN_X);
            int y = gen.nextInt(MAX_Y - MIN_Y) + MIN_Y;
            Rectangle square = new Rectangle(x, y, SIDE, SIDE);
            square.setColor(Color.RED);
            square.fill();
        }
    }

}
