Java Random Int random(int min, int max)

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

Description

random

License

Apache License

Declaration

private static int random(int min, int max) 

Method Source Code

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

public class Main {
    private static int random(int min, int max) {

        return (int) (min + Math.random() * (max - min));
    }//from   w  w w. j  ava2 s .  c o  m
}

Related

  1. random(int lowerBound, int upperBound)
  2. random(int maxValue)
  3. random(int min, int max)
  4. random(int min, int max)
  5. random(int min, int max)
  6. random(int min, int max)
  7. random(int min, int max)
  8. random(int n)
  9. random(int n)