random number range fix (non inclusive of max)