/** * Constructs a generator from a function that uses randomness. The returned * generator will not have any shrinking. * * @tsplus static effect/core/testing/Gen.Ops fromRandom */ export function fromRandom(f: (random: Random) => Effect): Gen { return Gen.fromRandomSample((random) => f(random).map(Sample.noShrink)) }