(low: number, high: number)
| 101 | return core.flatMap(this.next, (n) => core.succeed((max - min) * n + min)) |
| 102 | } |
| 103 | nextIntBetween(low: number, high: number): STM.STM<number> { |
| 104 | return withState(this.state, randomIntegerBetween(low, high)) |
| 105 | } |
| 106 | shuffle<A>(elements: Iterable<A>): STM.STM<Array<A>> { |
| 107 | return shuffleWith(elements, (n) => this.nextIntBetween(0, n)) |
| 108 | } |
no test coverage detected