using mersenne-twister as RNG