lazily initialize mersenne twister