Here you can find the source of randomColorValue()
private static int randomColorValue()
//package com.java2s; // Licensed under the Apache License, Version 2.0 (the "License"); public class Main { private static int randomColorValue() { return (int) (Math.random() * 255); }//from w ww. j a va 2 s . c om }