dpnp.random.choice

dpnp.random.choice(a, size=None, replace=True, p=None)[source]

Generates a random sample from a given 1-D array.

For full documentation refer to numpy.random.choice.

Notes

The function uses numpy.random.choice on the backend and will be executed on fallback backend.