CsCheck/Gen.cs
/// <summary>Create a second exact clone by running the generator again with the same seed.</summary>
Create a second exact clone by running the generator again with the same seed.
Create a second exact clone by running the generator again with the same seed .
public static Gen<(T V0, T V1)> Clone<T>(this Gen<T> gen) => Create((PCG pcg, Size min, out Size size) =>
        {
            var seed = pcg.Seed;
            var stream = pcg.Stream;
            var r1 = gen.Generate(pcg, min, out size);
            var r2 = gen.Generate(new PCG(stream, seed), min, out _);
            return (r1, r2);
        });
public static Gen < ( T V0 , T V1 ) > Clone < T > ( this Gen < T > gen ) => Create ( ( PCG pcg , Size min , out Size size ) => { var seed = pcg . Seed ; var stream = pcg . Stream ; var r1 = gen . Generate ( pcg , min , out size ) ; var r2 = gen . Generate ( new PCG ( stream , seed ) , min , out _ ) ; return ( r1 , r2 ) ; } ) ;
Create a second exact clone by running the generator again with the same seed.
Create a second exact clone by running the generator again with the same seed .
Gen<T>
this