Java ThreadLocalRandom randomBoundedInclusiveInt(int start, int end)

Here you can find the source of randomBoundedInclusiveInt(int start, int end)

Description

random Bounded Inclusive Int

License

Open Source License

Declaration

public static int randomBoundedInclusiveInt(int start, int end) 

Method Source Code


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

import java.util.concurrent.ThreadLocalRandom;

public class Main {
    public static int randomBoundedInclusiveInt(int start, int end) {
        return ThreadLocalRandom.current().nextInt(start, end + 1);
    }/*  w w w .  j ava  2  s  .c o  m*/
}

Related

  1. random(double min, double max)
  2. random(int min, int max)
  3. random(T[] array)
  4. randomAge()
  5. randomAlphabetic(int length)
  6. randomCase(String input)
  7. randomChar()
  8. randomDelay()
  9. randomDouble(final double min, final double max)