Permutation probabilities for gamma random variables