/** * Retreives the `Random` service from the environment and uses it to run the * specified workflow. * * @tsplus static effect/core/io/Effect.Ops randomWith */ export function randomWith(f: (random: Random) => Effect): Effect { return DefaultServices.currentServices.getWith((services) => f(services.get(Random.Tag))) }