Java Random Number getNumber(int seed)

Here you can find the source of getNumber(int seed)

Description

get Number

License

Apache License

Declaration

private static int getNumber(int seed) 

Method Source Code

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

public class Main {
    private static java.util.Random ran = new java.util.Random();

    /**************************************************************/

    private static int getNumber() {
        return Math.abs(ran.nextInt());
    }/*from  w  w  w .ja v  a2  s . com*/

    private static int getNumber(int seed) {
        if (seed == 0) {
            return 0;
        }
        return getNumber() % seed;
    }

    private static int getNumber(int start, int end) {
        return start + getNumber(end - start);
    }
}

Related

  1. getNumber()
  2. getNumber(int _nX0, int _nX1)
  3. getNumber(int length)
  4. getNumber(int length)
  5. getNumber(int length)
  6. getNumberClose(int seed)
  7. getNumberedUsername(String fn, String ln)
  8. getNumberInRange(int minimum, int maximum)
  9. getNumberLong()