def METHOD_NAME(size, return_ptr):
    """Fills a c++ float array with random numbers in [0, 1]
    Parameters
    ----------
    size: int
        The size of the array
    return_ptr:
        A pointer to a c++ float array
    """
    if size == 0:
        return
    return_ptr = ctypes.cast(return_ptr, ctypes.POINTER(ctypes.c_float))
    array_wrapper = np.ctypeslib.as_array(return_ptr, shape=(size,))
    array_wrapper[:] = np.random.uniform(0, 1, (size,))