RandomDSL
A domain-specific language (DSL) for generating random values using a Rand type.
Attributes
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
RandomDSL.type
Members list
Value members
Concrete methods
Extensions
Extensions
Generates a random double value within the range [start, end) excluding the maximum value.
Generates a random double value within the range [start, end) excluding the maximum value.
Attributes
- Returns
-
a Rand that generates a random double value, excluding the maximum value.
Generates a random double value within the range [start, end] including the maximum value.
Generates a random double value within the range [start, end] including the maximum value.
Attributes
- Returns
-
a Rand that generates a random double value, including the maximum value.
Generates a list of random values of type A
using the provided Rand and the specified size i
.
Generates a list of random values of type A
using the provided Rand and the specified size i
.
Type parameters
- A
-
the type of the random values to generate.
Value parameters
- ra
-
the Rand to use for generating the random values.
Attributes
- Returns
-
a Rand that generates a list of random values of type
A
of sizei
.
Generates a random double value within the range [start, end) or [start, end] based on the isMaxExcluded
parameter.
Generates a random double value within the range [start, end) or [start, end] based on the isMaxExcluded
parameter.
Value parameters
- end
-
the end of the range (exclusive or inclusive based on
isMaxExcluded
).
Attributes
- Returns
-
a function that takes a boolean indicating whether the maximum value is excluded and returns a Rand that generates a random double.