def gen_random_from_both(
    func: str, *args: Any, **kwargs: Any
) -> tuple[Any, Any]:
    """Call the same random function from both NumPy and cuPyNumeric."""
    return (
        getattr(np.random, func)(*args, **kwargs),
        getattr(num.random, func)(*args, **kwargs),
    )
Call the same random function from both NumPy and cuPyNumeric.
tests/integration/test_random_creation.py