Java Random Int randomNumber(int minimum, int maximum)

Here you can find the source of randomNumber(int minimum, int maximum)

Description

random Number

License

Apache License

Declaration

private static int randomNumber(int minimum, int maximum) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

public class Main {
    private static int randomNumber(int minimum, int maximum) {
        return (int) (Math.random() * maximum + minimum);
    }/*from w  ww  . j  a  v  a2 s.c  om*/
}

Related

  1. randomNum(int n)
  2. randomNum(int number)
  3. randomNumber(int lower, int upper)
  4. randomNumber(int lower_bound, int higher_bound)
  5. randomNumber(int min, int max)
  6. randomNumberBetweenIntervals(int min, int max)
  7. randomNumberWithinRange(int low, int high)
  8. randomNumberWithinRange(int min, int max)
  9. randomPass(int n)