Java tutorial
//package com.java2s; import java.util.Random; import android.graphics.Color; public class Main { public static int randomColor() { Random random = new Random(); int red = random.nextInt(150) + 50; int green = random.nextInt(150) + 50; int blue = random.nextInt(150) + 50; return Color.rgb(red, green, blue); } }