Java Random Color getRandomColorInString()

Here you can find the source of getRandomColorInString()

Description

get Random Color In String

License

Apache License

Declaration

public static String getRandomColorInString() 

Method Source Code

//package com.java2s;
// Licensed under the Apache License, Version 2.0 (the "License"); 

import java.util.Random;

public class Main {
    public static String getRandomColorInString() {
        Random numGen = new Random();
        return new String(numGen.nextInt(256) + ", " + numGen.nextInt(256) + ", " + numGen.nextInt(256));
    }/*  ww  w  .  ja  v  a  2  s .  co  m*/
}

Related

  1. getRandomColor()
  2. getRandomColor()
  3. getRandomColor(boolean useTransparency)
  4. getRandomColor(float offset, float alpha)
  5. getRandomColor(int saturationRandom, float luminance)
  6. getRandomColour()
  7. getRandomHexColor()
  8. getRandomHexColor()
  9. getRandomIntColor()