choice

sherpa.utils.random.choice(rng, xs, n)[source] [edit on github]

Create a subset of elements from xs with no duplication.

Parameters:
Returns:

values

Return type:

ndarray