group subtotal randomness