def streak_rotation_probability(streak_length: int) -> float:
    """
    Get rotation probability which depends on 'no rotation' streak length.
    Formula taken from section '2.3. Procedure'.

    :param: 'No rotation' streak length.

    :return: Rotation probability in the [0.0; 1.0] range.
    """
    if streak_length <= 0:
        return 0
    if streak_length >= 8:
        return 1
    if streak_length >= 5:
        return 0.25
    return streak_length * (0.1 - 0.01 * streak_length)