(self, x)
| 680 | |
| 681 | @derived_from(np.random.RandomState, skipblocks=1) |
| 682 | def permutation(self, x): |
| 683 | from dask.array.slicing import shuffle_slice |
| 684 | |
| 685 | if isinstance(x, numbers.Number): |
| 686 | x = arange(x, chunks="auto") |
| 687 | |
| 688 | index = np.arange(len(x)) |
| 689 | self._numpy_state.shuffle(index) |
| 690 | return shuffle_slice(x, index) |
| 691 | |
| 692 | @derived_from(np.random.RandomState, skipblocks=1) |
| 693 | def poisson(self, lam=1.0, size=None, chunks="auto", **kwargs): |
nothing calls this directly
no test coverage detected