Text this: Bernoulli trials and permutation statistics