(min, max, options)
| 253 | randomInt: Effect.sync(() => nextIntUnsafe()), |
| 254 | randomBetween: (min, max) => Effect.sync(() => nextDoubleUnsafe() * (max - min) + min), |
| 255 | randomIntBetween(min, max, options) { |
| 256 | const extra = options?.halfOpen === true ? 0 : 1 |
| 257 | return Effect.sync(() => { |
| 258 | const minInt = Math.ceil(min) |
| 259 | const maxInt = Math.floor(max) |
| 260 | return Math.floor(nextDoubleUnsafe() * (maxInt - minInt + extra)) + minInt |
| 261 | }) |
| 262 | }, |
| 263 | randomShuffle: (elements) => |
| 264 | Effect.sync(() => { |
| 265 | const buffer = Array.from(elements) |
nothing calls this directly
no test coverage detected