Standard deviation
Most likelt PAB you are working in VBA. So as you cycle through all combinations, the six numbers could be variables A, B, C, D, E and F, each being integers. If you define a variable nStDev as Long, you could use the following line to calculate the standard deviation for the 6 numbers:
nStDev = Application.WorksheetFunction.StDev(A, B, C, D, E, F)
After that, you could determine if the value of the standard deviation for the six numbers (A to F) meet any criteria you define. This is what I used to determine the distribution of standard deviation for all 13,983,816 combinations.