Random Module
Effects for generating random numbers through an IRandomProvider.
Functions and values
| Function or value |
Description
|
Full Usage:
next min max
Parameters:
int
-
The inclusive lower bound.
max : int
-
The exclusive upper bound.
Returns: Effect<'a, int, 'b>
Type parameters: 'a, 'b (requires :> Orsak.IRandomProvider) |
An effect that generates a random integer from min, inclusive, to max, exclusive.
Example
val rollDie: unit -> 'a
|
Full Usage:
nextDouble ()
Parameters:
unit
Returns: Effect<'a, float, 'b>
Type parameters: 'a, 'b (requires :> Orsak.IRandomProvider) |
An effect that generates a random floating-point number that is greater than or equal to 0.0, and less than 1.0.
|
Orsak