The random CASE statement