Combines sometimesZero and influenceWithDepth to create a function that returns a random number to pass to count.
sometimesZero
influenceWithDepth
count
count: createRandomChildCountGenerator({ max: 10, depthInfluence: 0.5 })// orcount: (depth: number) => createRandomChildCountGenerator({ max: 10, depthInfluence: 0.5 })(depth) Copy
count: createRandomChildCountGenerator({ max: 10, depthInfluence: 0.5 })// orcount: (depth: number) => createRandomChildCountGenerator({ max: 10, depthInfluence: 0.5 })(depth)
Combines
sometimesZeroandinfluenceWithDepthto create a function that returns a random number to pass tocount.