cern.jet.random.tdouble.engine.RandomGenerator Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of parallelcolt Show documentation
Show all versions of parallelcolt Show documentation
Parallel Colt is a multithreaded version of Colt - a library for high performance scientific computing in Java. It contains efficient algorithms for data analysis, linear algebra, multi-dimensional arrays, Fourier transforms, statistics and histogramming.
The newest version!
/*
Copyright (C) 1999 CERN - European Organization for Nuclear Research.
Permission to use, copy, modify, distribute and sell this software and its documentation for any purpose
is hereby granted without fee, provided that the above copyright notice appear in all copies and
that both that copyright notice and this permission notice appear in supporting documentation.
CERN makes no representations about the suitability of this software for any purpose.
It is provided "as is" without expressed or implied warranty.
*/
package cern.jet.random.tdouble.engine;
/**
* Interface for uniform pseudo-random number generators.
*/
public interface RandomGenerator {
/**
* Returns a 32 bit uniformly distributed random number in the open unit
* interval (0.0,1.0)
(excluding 0.0 and 1.0).
*/
public double raw();
/**
* Returns a 64 bit uniformly distributed random number in the open unit
* interval (0.0,1.0)
(excluding 0.0 and 1.0).
*/
public double nextDouble();
/**
* Returns a 32 bit uniformly distributed random number in the closed
* interval [Integer.MIN_VALUE,Integer.MAX_VALUE] (including
* Integer.MIN_VALUE and Integer.MAX_VALUE);
*/
public int nextInt();
/**
* Returns a 64 bit uniformly distributed random number in the closed
* interval [Long.MIN_VALUE,Long.MAX_VALUE] (including
* Long.MIN_VALUE and Long.MAX_VALUE).
*/
public long nextLong();
/**
* Returns a 32 bit uniformly distributed random number in the open unit
* interval (0.0f,1.0f)
(excluding 0.0f and 1.0f).
*/
public float nextFloat();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy