create a random number between $min and $max