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