Java Random Number getRandomNum()

Here you can find the source of getRandomNum()

Description

get integer random number

License

Open Source License

Declaration

public final static int getRandomNum() 

Method Source Code

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

import java.util.Random;

public class Main {
    private final static Random rnd = new Random(System.currentTimeMillis());

    /**/* w  ww  . j  a v  a  2s .  c  om*/
     * get integer random number
     * @return
     */
    public final static int getRandomNum() {
        return rnd.nextInt();
    }
}

Related

  1. getRandNum(int num)
  2. getRandNum(int num)
  3. getRandNumber(int maxNumber)
  4. getRandomDouble(double max, String decimalFormat)
  5. getRandomNum()
  6. getRandomNum()
  7. getRandomNum()
  8. getRandomNum(double pSngBegin, double pSngEnd)
  9. getRandomNum(int len)