fixed random point function typo