Use Mersenne Twister on Win32 instead of rand()

Built in rand() on Win32 only uses 15 bits which is horrible.

MT doesn't generate cryptographic randomness but that isn't necessary
for this application.