Pseudo-random number generators
Computers can't really roll dice — they use a formula that jumps around unpredictably: seed = (seed * 5 + 3) % 8. The same seed always gives the same "random" beat.
Challenge A:seed = 1. Four times: seed = (seed * 5 + 3) % 8, then play hihat(seed + 1).