fixed random init out of bounds