Java tutorial
//package com.java2s; import android.graphics.Color; import java.util.Random; public class Main { public static int randomColor() { Random random = new Random(); return Color.argb(255, random.nextInt(255), random.nextInt(255), random.nextInt(255)); } }