def _apply_random(func, seed, size, args, kwargs):
    state = np.random.RandomState(seed)
    func = getattr(state, func)
    return func(*args, size=size, **kwargs)
Apply RandomState method with seed
dataset/ETHPy150Open dask/dask/dask/array/random.py/_apply_random