MCPcopy Create free account
hub / github.com/grantjenks/python-sortedcontainers / iter_randomly

Function iter_randomly

tests/test_stress_sortedset.py:133–135  ·  view source on GitHub ↗
(start, stop, count)

Source from the content-addressed store, hash-verified

131@actor
132def stress_update(sst):
133 def iter_randomly(start, stop, count):
134 for rpt in range(count):
135 yield random.randrange(start, stop)
136 sst.update(iter_randomly(0, 500, 100),
137 iter_randomly(500, 1000, 100),
138 iter_randomly(1000, 1500, 100),

Callers 1

stress_updateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected