Stats help?
I have a sequence of bytes "a[]" where I know the mean and standard deviation. Suppose I want to group a into "n" bands (not necessarily contiguous in the original "a").
What I want is a lookup table "b[256]" where, for each byte in a[], b[a] will yield a number 0..n-1 with approx equal probability across the whole of a.
I think I used to know how to do this, but A-levels were a long time ago.

