Java Random randomIcon()

Here you can find the source of randomIcon()

Description

random Icon

License

Open Source License

Declaration

public static String randomIcon() 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    public static String randomIcon() {
        int min = 1, max = 24;

        return String.format("https://coding.net/static/project_icon/scenery-%d.png",
                min + (int) (Math.random() * ((max - min) + 1)));

    }/* ww w .  j  av  a2  s. com*/
}

Related

  1. randomFloat(float min, float max)
  2. randomFloatBetween(float begin, float end)
  3. randomFromIterator(Iterator iter)
  4. randomGaussian(int numElements)
  5. randomGreyLevels(double max, double min)
  6. randomID()
  7. randomId()
  8. randomIndices(Random r, int minCount, int maxCount)
  9. randomInRange(double min, double max)