Replace the last rand() with mt_rand()

Better entropy, faster.
Also fixed a few "it's" typos.