开发者

android generate randomly unique color code [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 10 years ago.

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 ;)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜