Prevent _.random returning max + 1 in rare cases