Tabnine Logo
ThreadLocalRandom.nextDouble
Code IndexAdd Tabnine to your IDE (free)

How to use
nextDouble
method
in
org.glassfish.grizzly.utils.ThreadLocalRandom

Best Java code snippets using org.glassfish.grizzly.utils.ThreadLocalRandom.nextDouble (Showing top 20 results out of 315)

origin: javaee/grizzly

/**
 * Returns a pseudorandom, uniformly distributed {@code double} value
 * between 0 (inclusive) and the specified value (exclusive).
 *
 * @param n the bound on the random number to be returned.  Must be
 *        positive.
 * @return the next value
 * @throws IllegalArgumentException if n is not positive
 */
public double nextDouble(double n) {
  if (n <= 0)
    throw new IllegalArgumentException("n must be positive");
  return nextDouble() * n;
}
origin: javaee/grizzly

/**
 * Returns a pseudorandom, uniformly distributed {@code double} value
 * between 0 (inclusive) and the specified value (exclusive).
 *
 * @param n the bound on the random number to be returned.  Must be
 *        positive.
 * @return the next value
 * @throws IllegalArgumentException if n is not positive
 */
public double nextDouble(double n) {
  if (n <= 0)
    throw new IllegalArgumentException("n must be positive");
  return nextDouble() * n;
}
origin: org.glassfish.grizzly/grizzly-websockets-server

/**
 * Returns a pseudorandom, uniformly distributed {@code double} value
 * between 0 (inclusive) and the specified value (exclusive).
 *
 * @param n the bound on the random number to be returned.  Must be
 *        positive.
 * @return the next value
 * @throws IllegalArgumentException if n is not positive
 */
public double nextDouble(double n) {
  if (n <= 0)
    throw new IllegalArgumentException("n must be positive");
  return nextDouble() * n;
}
origin: javaee/grizzly

/**
 * Returns a pseudorandom, uniformly distributed {@code double} value
 * between 0 (inclusive) and the specified value (exclusive).
 *
 * @param n the bound on the random number to be returned.  Must be
 *        positive.
 * @return the next value
 * @throws IllegalArgumentException if n is not positive
 */
public double nextDouble(double n) {
  if (n <= 0)
    throw new IllegalArgumentException("n must be positive");
  return nextDouble() * n;
}
origin: org.glassfish.grizzly/grizzly-websockets-server

/**
 * Returns a pseudorandom, uniformly distributed value between the
 * given least value (inclusive) and bound (exclusive).
 *
 * @param least the least value returned
 * @param bound the upper bound (exclusive)
 * @return the next value
 * @throws IllegalArgumentException if least greater than or equal
 * to bound
 */
public double nextDouble(double least, double bound) {
  if (least >= bound)
    throw new IllegalArgumentException();
  return nextDouble() * (bound - least) + least;
}
origin: javaee/grizzly

/**
 * Returns a pseudorandom, uniformly distributed value between the
 * given least value (inclusive) and bound (exclusive).
 *
 * @param least the least value returned
 * @param bound the upper bound (exclusive)
 * @return the next value
 * @throws IllegalArgumentException if least greater than or equal
 * to bound
 */
public double nextDouble(double least, double bound) {
  if (least >= bound)
    throw new IllegalArgumentException();
  return nextDouble() * (bound - least) + least;
}
origin: javaee/grizzly

/**
 * Returns a pseudorandom, uniformly distributed value between the
 * given least value (inclusive) and bound (exclusive).
 *
 * @param least the least value returned
 * @param bound the upper bound (exclusive)
 * @return the next value
 * @throws IllegalArgumentException if least greater than or equal
 * to bound
 */
public double nextDouble(double least, double bound) {
  if (least >= bound)
    throw new IllegalArgumentException();
  return nextDouble() * (bound - least) + least;
}
origin: org.glassfish.grizzly/grizzly-http-server-core

/**
 * Returns a pseudorandom, uniformly distributed value between the
 * given least value (inclusive) and bound (exclusive).
 *
 * @param least the least value returned
 * @param bound the upper bound (exclusive)
 * @return the next value
 * @throws IllegalArgumentException if least greater than or equal
 * to bound
 */
public double nextDouble(double least, double bound) {
  if (least >= bound)
    throw new IllegalArgumentException();
  return nextDouble() * (bound - least) + least;
}
origin: javaee/grizzly

/**
 * Returns a pseudorandom, uniformly distributed value between the
 * given least value (inclusive) and bound (exclusive).
 *
 * @param least the least value returned
 * @param bound the upper bound (exclusive)
 * @return the next value
 * @throws IllegalArgumentException if least greater than or equal
 * to bound
 */
public double nextDouble(double least, double bound) {
  if (least >= bound)
    throw new IllegalArgumentException();
  return nextDouble() * (bound - least) + least;
}
origin: javaee/grizzly

/**
 * Returns a pseudorandom, uniformly distributed value between the
 * given least value (inclusive) and bound (exclusive).
 *
 * @param least the least value returned
 * @param bound the upper bound (exclusive)
 * @return the next value
 * @throws IllegalArgumentException if least greater than or equal
 * to bound
 */
public double nextDouble(double least, double bound) {
  if (least >= bound)
    throw new IllegalArgumentException();
  return nextDouble() * (bound - least) + least;
}
origin: javaee/grizzly

/**
 * Returns a pseudorandom, uniformly distributed {@code double} value
 * between 0 (inclusive) and the specified value (exclusive).
 *
 * @param n the bound on the random number to be returned.  Must be
 *        positive.
 * @return the next value
 * @throws IllegalArgumentException if n is not positive
 */
public double nextDouble(double n) {
  if (n <= 0)
    throw new IllegalArgumentException("n must be positive");
  return nextDouble() * n;
}
origin: javaee/grizzly

/**
 * Returns a pseudorandom, uniformly distributed {@code double} value
 * between 0 (inclusive) and the specified value (exclusive).
 *
 * @param n the bound on the random number to be returned.  Must be
 *        positive.
 * @return the next value
 * @throws IllegalArgumentException if n is not positive
 */
public double nextDouble(double n) {
  if (n <= 0)
    throw new IllegalArgumentException("n must be positive");
  return nextDouble() * n;
}
origin: javaee/grizzly

/**
 * Returns a pseudorandom, uniformly distributed {@code double} value
 * between 0 (inclusive) and the specified value (exclusive).
 *
 * @param n the bound on the random number to be returned.  Must be
 *        positive.
 * @return the next value
 * @throws IllegalArgumentException if n is not positive
 */
public double nextDouble(double n) {
  if (n <= 0)
    throw new IllegalArgumentException("n must be positive");
  return nextDouble() * n;
}
origin: javaee/grizzly

/**
 * Returns a pseudorandom, uniformly distributed {@code double} value
 * between 0 (inclusive) and the specified value (exclusive).
 *
 * @param n the bound on the random number to be returned.  Must be
 *        positive.
 * @return the next value
 * @throws IllegalArgumentException if n is not positive
 */
public double nextDouble(double n) {
  if (n <= 0)
    throw new IllegalArgumentException("n must be positive");
  return nextDouble() * n;
}
origin: org.glassfish.grizzly/grizzly-core

/**
 * Returns a pseudorandom, uniformly distributed {@code double} value
 * between 0 (inclusive) and the specified value (exclusive).
 *
 * @param n the bound on the random number to be returned.  Must be
 *        positive.
 * @return the next value
 * @throws IllegalArgumentException if n is not positive
 */
public double nextDouble(double n) {
  if (n <= 0)
    throw new IllegalArgumentException("n must be positive");
  return nextDouble() * n;
}
origin: javaee/grizzly

/**
 * Returns a pseudorandom, uniformly distributed {@code double} value
 * between 0 (inclusive) and the specified value (exclusive).
 *
 * @param n the bound on the random number to be returned.  Must be
 *        positive.
 * @return the next value
 * @throws IllegalArgumentException if n is not positive
 */
public double nextDouble(double n) {
  if (n <= 0)
    throw new IllegalArgumentException("n must be positive");
  return nextDouble() * n;
}
origin: org.mule.glassfish.grizzly/grizzly-framework

/**
 * Returns a pseudorandom, uniformly distributed {@code double} value
 * between 0 (inclusive) and the specified value (exclusive).
 *
 * @param n the bound on the random number to be returned.  Must be
 *        positive.
 * @return the next value
 * @throws IllegalArgumentException if n is not positive
 */
public double nextDouble(double n) {
  if (n <= 0)
    throw new IllegalArgumentException("n must be positive");
  return nextDouble() * n;
}
origin: org.glassfish.grizzly/grizzly-http-server-core

/**
 * Returns a pseudorandom, uniformly distributed {@code double} value
 * between 0 (inclusive) and the specified value (exclusive).
 *
 * @param n the bound on the random number to be returned.  Must be
 *        positive.
 * @return the next value
 * @throws IllegalArgumentException if n is not positive
 */
public double nextDouble(double n) {
  if (n <= 0)
    throw new IllegalArgumentException("n must be positive");
  return nextDouble() * n;
}
origin: javaee/grizzly

/**
 * Returns a pseudorandom, uniformly distributed value between the
 * given least value (inclusive) and bound (exclusive).
 *
 * @param least the least value returned
 * @param bound the upper bound (exclusive)
 * @return the next value
 * @throws IllegalArgumentException if least greater than or equal
 * to bound
 */
public double nextDouble(double least, double bound) {
  if (least >= bound)
    throw new IllegalArgumentException();
  return nextDouble() * (bound - least) + least;
}
origin: javaee/grizzly

/**
 * Returns a pseudorandom, uniformly distributed value between the
 * given least value (inclusive) and bound (exclusive).
 *
 * @param least the least value returned
 * @param bound the upper bound (exclusive)
 * @return the next value
 * @throws IllegalArgumentException if least greater than or equal
 * to bound
 */
public double nextDouble(double least, double bound) {
  if (least >= bound)
    throw new IllegalArgumentException();
  return nextDouble() * (bound - least) + least;
}
org.glassfish.grizzly.utilsThreadLocalRandomnextDouble

Javadoc

Returns a pseudorandom, uniformly distributed double value between 0 (inclusive) and the specified value (exclusive).

Popular methods of ThreadLocalRandom

  • <init>
    Constructor called only by localRandom.initialValue.
  • next
  • nextInt
    Returns a pseudorandom, uniformly distributed value between the given least value (inclusive) and bo
  • nextLong
    Returns a pseudorandom, uniformly distributed value between the given least value (inclusive) and bo
  • current
    Returns the current thread's ThreadLocalRandom.

Popular in Java

  • Making http post requests using okhttp
  • putExtra (Intent)
  • setContentView (Activity)
  • requestLocationUpdates (LocationManager)
  • InetAddress (java.net)
    An Internet Protocol (IP) address. This can be either an IPv4 address or an IPv6 address, and in pra
  • Socket (java.net)
    Provides a client-side TCP socket.
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • ImageIO (javax.imageio)
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
  • Top PhpStorm plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now