Java tutorial
//package com.java2s; import android.graphics.Color; import java.util.Random; public class Main { public static int randomColr() { Random random = new Random(); int r = random.nextInt(180); int g = random.nextInt(180); int b = random.nextInt(180); return Color.rgb(r, g, b); } }