MCPcopy Create free account
hub / github.com/dask/dask / _choice_rng

Function _choice_rng

dask/array/_array_expr/random.py:797–799  ·  view source on GitHub ↗
(state_data, a, size, replace, p, axis, shuffle)

Source from the content-addressed store, hash-verified

795
796
797def _choice_rng(state_data, a, size, replace, p, axis, shuffle):
798 state = _rng_from_bitgen(state_data)
799 return state.choice(a, size=size, replace=replace, p=p, axis=axis, shuffle=shuffle)
800
801
802def _choice_rs(state_data, a, size, replace, p):

Callers

nothing calls this directly

Calls 2

_rng_from_bitgenFunction · 0.70
choiceMethod · 0.45

Tested by

no test coverage detected