g.setColor(Color.blue); diameter = (int) (Math.random() * 100) + 1; g.fillOval( 30, 30, diameter, diameter);