refactor mersenne twister some more