Java tutorial
//package com.java2s; //License from project: Open Source License import android.graphics.Color; import java.util.Random; public class Main { public static int getRandomColor() { Random rnd = new Random(); return Color.argb(50, rnd.nextInt(256), rnd.nextInt(256), rnd.nextInt(256)); } }