thread safe mersenne twister (MT1997) implementation for each individual module.