MCPcopy Index your code
hub / github.com/InstaPy/InstaPy / stoch_randomizer

Function stoch_randomizer

instapy/quota_supervisor.py:197–201  ·  view source on GitHub ↗

Value randomizer for stochastic flow

(value, percent)

Source from the content-addressed store, hash-verified

195
196
197def stoch_randomizer(value, percent):
198 """Value randomizer for stochastic flow"""
199 stochastic_value = random.randint(int((value + 1) * percent / 100), value)
200
201 return stochastic_value
202
203
204def remaining_time(sleepyhead, interval):

Callers 1

stochast_valuesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected