choice

sherpa.utils.random.choice(rng: Generator | RandomState | None, xs: Sequence, n) ndarray[source] [edit on github]

Create a subset of elements from xs with no duplication.

Parameters:
Returns:

values

Return type:

ndarray