def random(
    size: NdShapeLike | None = None,
) -> float | ndarray:
    """
    random(size=None)

    Return random floats in the half-open interval [0.0, 1.0). Alias for
    `random_sample` to ease forward-porting to the new random API.

    See Also
    --------
    numpy.random.random

    Availability
    --------
    Multiple GPUs, Multiple CPUs
    """
    return get_static_generator().random(size)

    random(size=None)

    Return random floats in the half-open interval [0.0, 1.0). Alias for
    `random_sample` to ease forward-porting to the new random API.

    See Also
    --------
    numpy.random.random

    Availability
    --------
    Multiple GPUs, Multiple CPUs
    
cupynumeric/random/_random.py