Java Random Int getRandomIntegerInRange(Random p_76136_0_, int p_76136_1_, int p_76136_2_)

Here you can find the source of getRandomIntegerInRange(Random p_76136_0_, int p_76136_1_, int p_76136_2_)

Description

get Random Integer In Range

License

Open Source License

Declaration

public static int getRandomIntegerInRange(Random p_76136_0_, int p_76136_1_, int p_76136_2_) 

Method Source Code


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

import java.util.Random;

public class Main {
    public static int getRandomIntegerInRange(Random p_76136_0_, int p_76136_1_, int p_76136_2_) {
        return p_76136_1_ >= p_76136_2_ ? p_76136_1_ : p_76136_0_.nextInt(p_76136_2_ - p_76136_1_ + 1) + p_76136_1_;
    }// w w  w.j a v a2 s .co  m
}

Related

  1. getRandomIntBetween(int low, int high)
  2. getRandomIntBetween(int mi, int ma)
  3. getRandomInteger(int aStart, int aEnd)
  4. getRandomInteger(int min, int max)
  5. getRandomIntegerArray(Random rand, int size, int range)
  6. getRandomIntegerInRange(Random random, int i, int j)
  7. getRandomInterests()
  8. getRandomIntFromRange(int min, int max)
  9. getRandomInts(int number)