(f: (random: typeof Random["Service"]) => A)
| 55 | }> = random.Random |
| 56 | |
| 57 | const randomWith = <A>(f: (random: typeof Random["Service"]) => A): Effect.Effect<A> => |
| 58 | Effect.withFiber((fiber) => Effect.succeed(f(fiber.getRef(Random)))) |
| 59 | |
| 60 | /** |
| 61 | * Generates a random number between 0 (inclusive) and 1 (exclusive). |
no test coverage detected