Random0
The Random0 class generates random real numbers in the range (0, 1). It implements, using 32-bit integers (Int's).
x_i = (x_i-1 + 1) % m
Value parameters
- stream
-
the random number stream index
Attributes
- See also
-
Randomfor a better random number generator - Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait RNGclass Objecttrait Matchableclass AnyShow all
Members list
Value members
Concrete methods
Return the next random number as a Double in the interval (0, 1). Compute x_i = (x_i-1 + 1) % m using x = (x + 1) % m
Return the next random number as a Double in the interval (0, 1). Compute x_i = (x_i-1 + 1) % m using x = (x + 1) % m
Attributes
Return the modulus used by this random number generator.
Return the modulus used by this random number generator.
Attributes
Return the next stream value as a Int in the set {1, 2, ... , m-1}. Compute x_i = (x_i-1 + 1) % m using x = (x + 1) % m
Return the next stream value as a Int in the set {1, 2, ... , m-1}. Compute x_i = (x_i-1 + 1) % m using x = (x + 1) % m
Attributes
Inherited methods
Compute the probability function (pf), i.e., the probability density function (pdf).
Compute the probability function (pf), i.e., the probability density function (pdf).
Value parameters
- z
-
the mass point whose probability density is sought
Attributes
- Inherited from:
- RNG
An iterator over the names of all the elements of this product.
An iterator over the names of all the elements of this product.
Attributes
- Inherited from:
- Product
An iterator over all the elements of this product.
An iterator over all the elements of this product.
Attributes
- Returns
-
in the default implementation, an
Iterator[Any] - Inherited from:
- Product