Java Random Long getLong()

Here you can find the source of getLong()

Description

Gets a random long.

License

Open Source License

Return

random long.

Declaration

public static long getLong() 

Method Source Code


//package com.java2s;
import java.util.Random;

public class Main {
    private static final Random RANDOM = new Random();

    /**//  ww w.j  a  v a2 s  .c  om
     * Gets a random long.
     *
     * @return random long.
     */
    public static long getLong() {
        return RANDOM.nextLong();
    }
}

Related

  1. generateRandomBySampleSeed(long sampleSeed, long fallbackValue)
  2. generateRandomLongValue()
  3. getLong()
  4. getLongBetween(long n, long m)
  5. getLongInRange(long minValue, long maxValue)
  6. getLongSpecial()
  7. getLongSpecialCases()