I'm working on an ability score generation mechanic inspired by 13th Age, where you roll dice and assign a letter to each result, then determine scores by pairing the results, adding a static modifier, and subtracting the paired results from each other. Here's my take on it:
Roll six d6, rerolling any ones. Line them up, and assign a letter to each: A B C D E F.
Calculate your stats using pairs of adjacent dice as follows:
12+A-F
12+B-E
12+C-D
12+D-C
12+E-B
12+F-A
This guarantees a random array with a fixed stat total (in my case, 72 because the static modifier is 12), as subtracting each of the rolled pairs cancels out, leaving you with a net zero. Generally the roll results are applied in random order, but in the mechanic I'm working on, I'm sorting them lowest to highest and subtracting die 1 from die 6, die 2 from die 5, and die 3 from die 4, which should statistically provide the greatest possible disparity between ability scores. I'm also rerolling all ones, which skews the average result higher but also changes the potential spread from 7-17 to 8-16, which I prefer.
I think I'm happy with this method, and I know it's a much smaller pool of potential results than simply pairing the rolls randomly, but I'd still like to graph it in AnyDice. The problem is that I have no idea how. I know how to create arrays and basic functions, but I think this mechanic requires one or two too many steps for my brain to wrap around. Any help would be appreciated.