Back to project page IconicDroid-Gradle.
The source code is released under:
MIT License
If you think the Android project IconicDroid-Gradle listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.atermenji.android.iconicdroid.sample; // w ww .j a va2s . co m import java.util.Random; import android.graphics.Color; public class Utils { public static int randomColor() { Random random = new Random(); return Color.rgb(random.nextInt(255), random.nextInt(255), random.nextInt(255)); } }