The unexpected logic behind rolling multiple dice and picking the highest.