Yeah. That even might be one of the matasano (now cryptopals) challenges. Like Mersenne twister.
A bit much for a "quiz" perhaps. This simple example at least disabuses people of the mistaken belief that it's only nonce *reuse* that's dangerous (although, who that is helping I could not tell you š).