Input reading and Mersenne Twister