Create Mersenne Twister-based RNG if rand is not already defined.