Java Random Number getRandomNumberGenerator()

Here you can find the source of getRandomNumberGenerator()

Description

get Random Number Generator

License

Open Source License

Declaration

public static Random getRandomNumberGenerator() 

Method Source Code

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

import java.util.Random;

public class Main {
    private static volatile long seedQualifier = 432282912137141232L;

    public static Random getRandomNumberGenerator() {
        return new Random(++seedQualifier + System.nanoTime());
    }//from  w w  w . j  a va 2  s . co m
}

Related

  1. getRandomNumber(int num)
  2. getRandomNumber(int randomCount)
  3. getRandomNumber(int startNumber, int endNumber)
  4. getRandomNumberBetween(int min, int max)
  5. getRandomNumberFixLength()
  6. getRandomNumberInRange(Random random, int min, int max)
  7. getRandomNumbers(int range, int count, Random rnd)
  8. getRandomNumberString(int length)
  9. getRandomNumer(int length)