Here you can find the source of getRandColor(int fc, int bc)
public static Color getRandColor(int fc, int bc)
//package com.java2s; //License from project: Apache License import java.awt.Color; import java.util.Random; public class Main { public static Color getRandColor(int fc, int bc) { Random random = new Random(); int r = fc + random.nextInt(bc - fc); int g = fc + random.nextInt(bc - fc); int b = fc + random.nextInt(bc - fc); return new Color(r, g, b); }//from www . j a va2 s .c om }