Rand
A companion object for the Rand type, providing utility methods for working with random values.
Attributes
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
Rand.type
Members list
Value members
Concrete methods
Transforms a Rand of type A
into a Rand of type B
by applying the function 'f' to the value generated by the original Rand.
Transforms a Rand of type A
into a Rand of type B
by applying the function 'f' to the value generated by the original Rand.
Type parameters
- A
-
the type of the value generated by the original Rand.
- B
-
the type of the value generated by the transformed Rand.
Value parameters
- f
-
the function to transform the value of type
A
into a value of typeB
. - ra
-
the original Rand that generates a value of type
A
.
Attributes
- Returns
-
a new Rand that generates a value of type
B
.
Transforms a Rand of type A
into a Rand of type B
by applying the function 'f' to the value generated by the original Rand.
Transforms a Rand of type A
into a Rand of type B
by applying the function 'f' to the value generated by the original Rand.
Type parameters
- A
-
the type of the value generated by the original Rand.
- B
-
the type of the value generated by the transformed Rand.
Value parameters
- f
-
the function to transform the value of type
A
into a value of typeB
. - ra
-
the original Rand that generates a value of type
A
.
Attributes
- Returns
-
a new Rand that generates a value of type
B
.