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); }
public static IPermutation ToFullTwoCyclePermutation(this IRando randy, uint order) { return(new Permutation(order, randy.ToFullTwoCycleArray(order))); }