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

Function randomize

Lib/turtledemo/forest.py:17–20  ·  view source on GitHub ↗
( branchlist, angledist, sizedist )

Source from the content-addressed store, hash-verified

15 return randrange(-n,n+1)
16
17def randomize( branchlist, angledist, sizedist ):
18 return [ (angle+symRandom(angledist),
19 sizefactor*1.01**symRandom(sizedist))
20 for angle, sizefactor in branchlist ]
21
22def randomfd( t, distance, parts, angledist ):
23 for i in range(parts):

Callers 1

treeFunction · 0.70

Calls 1

symRandomFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…