added mt_rand and deleted duplicate echo