开发者

android generate randomly unique color code [closed]

开发者 https://www.devze.com 2023-02-05 16:43 出处:网络
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical andcannot be reasonably answered in its current form. For help clari
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

精彩评论

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