Version 1.2 added mt_rand() instead of rand()