Here you can find the source of randomColor(double d)
public static String randomColor(double d)
//package com.java2s; //License from project: Open Source License public class Main { public static String randomColor(double d) { return "rgba(" + randomColorFactor() + "," + randomColorFactor() + "," + randomColorFactor() + "," + d + ")"; }// www .ja va 2s .c o m public static long randomColorFactor() { return Math.round(Math.random() * 255); } }