Been playing with this for a while…

I want to generate “n” lists of numbers from a pool of numbers. Forgive my math ineloquency…

Simple example…

Number pool: a,b

Wanted list: a,b,x [where x is either a or b]

…then shuffle all the lists in order to get something like:

a,a,b

a,b,a

b,a,a

b,b,a

b,a,b

…

I have this:

Only problem with this one is that I always have exact same distribution of “a” and “b” values as x, and i want that to be “random”. Idea is not to have all same members in a list.

Anyone with more elegant solution? I accept scripting solution