android generate randomly unique color code [closed]
I want to gen开发者_JAVA技巧erate random,unique color code. Is there any algorithm ?
Random color = new Random();
Color randomColor = new Color(color.nextInt(256),color.nextInt(256),color.nextInt(256));
Ofcouse pedantically speaking, not assured to be random ;)
精彩评论