Advertisement
Guest User

Untitled

a guest
Sep 18th, 2014
209
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. for (int k = 1; k <= 100; k++)
  2. {
  3. x1 = rnd.nextInt(340)+400;
  4. y1 = rnd.nextInt(240)+10;
  5.  
  6. red = (rnd.nextInt(255)+1);
  7. green = (rnd.nextInt(255)+1);
  8. blue = (rnd.nextInt(255)+1);
  9.  
  10. g.setColor(new Color(red,green,blue));
  11. g.fillRect(x1,y1,50,50);
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement