Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for (int k = 1; k <= 100; k++)
- {
- x1 = rnd.nextInt(340)+400;
- y1 = rnd.nextInt(240)+10;
- red = (rnd.nextInt(255)+1);
- green = (rnd.nextInt(255)+1);
- blue = (rnd.nextInt(255)+1);
- g.setColor(new Color(red,green,blue));
- g.fillRect(x1,y1,50,50);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement