Java Random random4DigitNumber()

Here you can find the source of random4DigitNumber()

Description

random Digit Number

License

Apache License

Declaration

public static int random4DigitNumber() 

Method Source Code

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

public class Main {
    public static int random4DigitNumber() {
        return (int) (Math.random() * 9000) + 1000;
    }//from   w w w  . j  a v a  2 s. com
}

Related

  1. random(final char[] chars)
  2. random(float min, float max)
  3. random(float theStart, float theEnd)
  4. random(int min, int max)
  5. random(List list, Random random)
  6. random_g729()
  7. random_g729()
  8. randomAgain()
  9. randomAlpha()