Ejemplo n.º 1
0
 public static SorterPool ToRandomSorterPool(this IRando rando, uint order,
                                             uint stageCount, uint sorterCount)
 {
     return(0u.CountUp(sorterCount)
            .Select(i => rando.ToSorter(order, stageCount)).ToSorterPool());
 }
Ejemplo n.º 2
0
        public static ISorter ToSorter(this IRando rando, int keyCount, int keyPairCount, Guid guid)
        {
            var keyPairSet = KeyPairRepository.KeyPairSet(keyCount);

            return(rando.ToSorter(keyPairSet.KeyPairs, keyPairCount, keyCount, guid));
        }