Advertisement
Ankhwatcher

randomColorGenerator With run For Multiple Generations

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