+ Great practice of  putting in an extra case to check for the possibility of rand becoming -1