Java tutorial
//package com.java2s; //License from project: Apache License import android.graphics.Color; import java.util.Random; public class Main { public static int getRandomColor() { Random random = new Random(); int alpha = random.nextInt(50) + 206; int red = random.nextInt(200); int green = random.nextInt(200); int blue = random.nextInt(200); return Color.argb(alpha, red, green, blue); } }