added javascript mt_rand()