MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / symRandom

Function symRandom

tools/python-3.11.9-amd64/Lib/turtledemo/forest.py:18–19  ·  view source on GitHub ↗
(n)

Source from the content-addressed store, hash-verified

16from time import perf_counter as clock
17
18def symRandom(n):
19 return randrange(-n,n+1)
20
21def randomize( branchlist, angledist, sizedist ):
22 return [ (angle+symRandom(angledist),

Callers 3

randomizeFunction · 0.85
randomfdFunction · 0.85
treeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected