Java Utililty Methods Random Color

List of utility methods to do Random Color

Description

The list of methods to do Random Color are organized into topic(s).

Method

ColorrandomBrown()
random Brown
if (rand == null)
    rand = new Random();
return new Color(rand.nextInt(200), rand.nextInt(120), rand.nextInt(20));
ColorrandomColor()
random Color
return new Color(randomColorValue(), randomColorValue(), randomColorValue());
ColorrandomColor()
random Color
int c = (int) (Math.random() * 255);
return new Color(Math.abs(c * 25) % 255, Math.abs(17 * c) % 255, Math.abs(34 * c) % 255);
StringrandomColor()
random Color
StringBuilder colorBuilder = new StringBuilder();
colorBuilder.append('#');
for (int i = 0; i < 6; i++) {
    Double position = Math.floor(Math.random() * 16);
    colorBuilder.append(letters[position.intValue()]);
return colorBuilder.toString();
intrandomColor()
random Color
return RANDOM.nextInt(256);
ColorrandomColor()
random Color
return new Color(r.nextInt(255), r.nextInt(255), r.nextInt(255));
ColorrandomColor()
random Color
return new Color((int) (Math.random() * 255), (int) (Math.random() * 255), (int) (Math.random() * 255));
StringrandomColor()
random Color
return colors[(int) (Math.random() * colors.length)];
java.awt.ColorrandomColor()
Generates and returns a random RGB Color .
return new java.awt.Color(randomInteger(0, 255), randomInteger(0, 255), randomInteger(0, 255));
ColorrandomColor(int idx)
Port of DChip function of the same name.
return randomColor(idx, 1.0f);