Exemple #1
0
        public static ISorterStage ToFullSorterStage(this IRando rando, uint order, uint stageNumber)
        {
            var perm = new SorterStage(
                order: order,
                terms: rando.ToFullTwoCycleArray(order),
                stageNumber: stageNumber
                );

            return(perm);
        }
Exemple #2
0
 public static IPermutation ToFullTwoCyclePermutation(this IRando randy, uint order)
 {
     return(new Permutation(order, randy.ToFullTwoCycleArray(order)));
 }