Advertisement
Ankhwatcher

randomColorGenerator

Mar 19th, 2012
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.24 KB | None | 0 0
  1. public int randomColorGenerator() {
  2.  
  3.         Time seedTime = new Time();
  4.         seedTime.setToNow();
  5.         Random randomColor = new Random(seedTime.toMillis(true));
  6.         int returnColor = 0xFF000000 + randomColor.nextInt(0xFFFFFF);
  7.         return returnColor;
  8.  
  9.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement