Back to project page BoxSorter.
The source code is released under:
GNU General Public License
If you think the Android project BoxSorter 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.silverhillapps.boxsorter.utils; //from w ww .j a v a2 s .com import java.util.Random; import android.graphics.Color; /** * Class with utils for the application * @author salva * */ public class Utils { /** * THis method generates a random color * @return */ public static int randomColor(){ Random rnd = new Random(); int color = Color.argb(255, rnd.nextInt(256), rnd.nextInt(256), rnd.nextInt(256)); return color; } }