public static SorterPool ToRandomSorterPool(this IRando rando, uint order, uint stageCount, uint sorterCount) { return(0u.CountUp(sorterCount) .Select(i => rando.ToSorter(order, stageCount)).ToSorterPool()); }
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)); }