This class is a random-number-generator for values uniformly distributed in the range 0..1
Attributes
- Companion
- object
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass RNG_Java[UniformDouble]trait RNG[UniformDouble]trait () => UniformDoubleclass Objecttrait Matchableclass AnyShow all
Members list
Value members
Concrete methods
Method to build a new instance of this RNG
Method to build a new instance of this RNG
Value parameters
- n
-
the state
Attributes
- Returns
-
a new instance of RNG as a RNG_Java
Inherited methods
The apply method: takes no parameter and yields an A
Method to map this RNG into another RNG
Method to map this RNG into another RNG
Type parameters
- B
-
the underlying type of the new RNG
Value parameters
- f
-
the map function which should be applied to the underlying value.
Attributes
- Returns
-
a new RNG[B]
- Inherited from:
- RNG_Java
Method to yield the next RNG in the pseudo-random sequence. Extenders don't normally need to override this.
Method to yield the next RNG in the pseudo-random sequence. Extenders don't normally need to override this.
Attributes
- Inherited from:
- RNG_Java
Method to yield the next seed value. This implementation simply calls the nextSeed method in the companion object.
Method to yield the next seed value. This implementation simply calls the nextSeed method in the companion object.
may be overridden (if you want to define your own pseudo-random sequence)
Attributes
- Returns
-
a Long value
- Inherited from:
- RNG_Java
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