com.phasmidsoftware.number.core.misc.RandomState
See theRandomState companion object
Monadic trait which defines a random-state.
Created by scalaprof on 9/24/16.
Type parameters
- T
-
the underlying type of this random state, i.e. the type of the result of calling get
Attributes
- Companion
-
object
- Graph
-
- Supertypes
-
class Object
trait Matchable
class Any
- Known subtypes
-
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.
Attributes
- Returns
-
a LazyList of T values.