MCPcopy Create free account
hub / github.com/getsentry/sentry / random_normal

Function random_normal

src/sentry/utils/samples.py:23–27  ·  view source on GitHub ↗
(mu, sigma, minimum, maximum=None)

Source from the content-addressed store, hash-verified

21
22
23def random_normal(mu, sigma, minimum, maximum=None):
24 random_value = max(random.normalvariate(mu, sigma), minimum)
25 if maximum is not None:
26 random_value = min(random_value, maximum)
27 return random_value
28
29
30def random_ip():

Callers 2

create_mock_transactionsFunction · 0.90
create_traceFunction · 0.85

Calls 1

maxFunction · 0.50

Tested by

no test coverage detected