MCPcopy Index your code
hub / github.com/python/cpython / rand

Function rand

Lib/statistics.py:1131–1132  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1129 choice = prng.choice
1130
1131 def rand():
1132 return choice(data) + h * invcdf(random())
1133
1134 rand.__doc__ = f'Random KDE selection with {h=!r} and {kernel=!r}'
1135

Callers 1

test_kde_randomMethod · 0.85

Calls 1

choiceFunction · 0.85

Tested by 1

test_kde_randomMethod · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…