#### sneze2r

##### Member

I have algebra problem. Suppose i want to generate random state on cube with given condition: there must be 14 targets for edges.

**Is there an `easy` aproach in implementation algoritm, that it will output vector of edges permutations which for given condition is properly distributed**?

What do I want this for? I'm working on something like conditional scrambler, which for input conditions like "2 corners twisted+ one edge twisted+over 10 edge targets" will output me scramble satisfying these conditions and currently I'm only struggling with 'number of targets' module. I tried approach with some simple cycle breaking but It seems far to difficult. I can also simulate distribution of (targets.number x cycle.lengths.on.cube), and then on this empirical simulation result generate cycles on cube, but I expect that there is easier way to do this.