Here you can find the source of GetRandomColor()
public static String GetRandomColor()
//package com.java2s; //License from project: Apache License import java.util.HashMap; import java.util.Map; import java.util.Random; public class Main { static Map<Integer, String> dictionary = new HashMap<Integer, String>(); public static String GetRandomColor() { Random rand = new Random(); Integer random = rand.nextInt(17); return dictionary.get(random); }/*w w w.ja va2 s . c o m*/ }