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