Mersenne twister

I implemented the Mersenne twister algorithm, following the pseudocode on [the Wikipedia article](http://en.wikipedia.org/wiki/Mersenne_twister) closely. I'm not sure how to test something like this, though.

(Apologies if my style is not good; I haven't been programming for very long.)