Java tutorial
//package com.java2s; import java.util.Random; import android.graphics.Color; public class Main { public static int randomColor() { Random __rdn = new Random(); int __red = __rdn.nextInt(255); int __green = __rdn.nextInt(255); int __blue = __rdn.nextInt(255); return Color.rgb(__red, __green, __blue); } }