Completed challenge 21 (Mersenne Twister implementation).