All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.apache.commons.jre.java.util.concurrent.ThreadLocalRandom Maven / Gradle / Ivy

Go to download

The Apache Commons Codec component contains encoders and decoders for various formats such as Base16, Base32, Base64, digest, and Hexadecimal. In addition to these widely used encoders and decoders, the codec package also maintains a collection of phonetic encoding utilities. This is a port for GWT, which enables program, to use Apache Commons Codec also in the frontend compiled by the gwt compiler to java-script.

There is a newer version: 1.17.1-0
Show newest version
package java.util.concurrent;

import java.util.Random;

public class ThreadLocalRandom extends Random {

  private static final long serialVersionUID = 7318848755102526184L;

  /**
   * Returns the current thread's {@code ThreadLocalRandom}.
   *
   * @return the current thread's {@code ThreadLocalRandom}
   */
  public static ThreadLocalRandom current() {
    return new ThreadLocalRandom();
  }

  /** Constructor used only for static singleton */
  private ThreadLocalRandom() {
    super();
  }

  public int nextInt(int minSize, int maxSize) {
    return 0;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy