com.phasmidsoftware.number.core.misc.RandomState_Java
A concrete implementation of RandomState based on the Java random number generator
Type parameters
- T
-
the underlying type of this random state, i.e. the type of the result of calling get
Value parameters
- g
-
the function which maps a Long value into a T
- n
-
the random Long that characterizes this random state
Attributes
- Graph
-
- Supertypes
-
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Members list
Attributes
- Returns
-
the value of this random state.
Method to map this random state into another random state.
Method to map this random state into another random state.
Type parameters
- U
-
the underlying type of the resulting random state.
Value parameters
- f
-
the function to map a T value into a U value.
Attributes
- Returns
-
a new random state.
Attributes
- Returns
-
the next random state in the pseudo-random series.
Method to flatMap this random state into another random state.
Method to flatMap this random state into another random state.
Type parameters
- U
-
the underlying type of the resulting random state.
Value parameters
- f
-
the function to map a T value into a RandomState[U] value.
Attributes
- Returns
-
a new random state.
- Inherited from:
-
RandomState
Attributes
- Returns
-
a LazyList of T values.
- Inherited from:
-
RandomState
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