Java ThreadLocalRandom get_a_number_between_min_and_max(int min, int max)

Here you can find the source of get_a_number_between_min_and_max(int min, int max)

Description

genumbebetweemianmax

License

Open Source License

Declaration

public static int get_a_number_between_min_and_max(int min, int max) 

Method Source Code

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

public class Main {
    public static int get_a_number_between_min_and_max(int min, int max) {
        return java.util.concurrent.ThreadLocalRandom.current().nextInt(min, max + 1);
    }//from w w w  .  j  av a2s  .com
}

Related

  1. generateRandomSalt(int saltSize)
  2. generateString(int length)
  3. generateString(Random rng, String characters, int length)
  4. generateStringFromCharacters(final Random random, final char[] validChars, final int min, final int max)
  5. genRandomString()
  6. getBoolean()
  7. getElement(boolean[] array)
  8. getInt(int bound)
  9. getLetter()