import random


def _generate_random_float_scalar() -> float:
    """Generate a random float scalar.

    Returns:
        float: a random value within the range [0, 1)
    """

    return random.random()