@witchcraft/editor
    Preparing search index...
    • Combines sometimesZero and influenceWithDepth to create a function that returns a random number to pass to count.

      count: createRandomChildCountGenerator({ max: 10, depthInfluence: 0.5 })
      // or
      count: (depth: number) => createRandomChildCountGenerator({ max: 10, depthInfluence: 0.5 })(depth)

      Parameters

      • __namedParameters: { depthInfluence?: number; max: number; zeroChance?: number }

      Returns (depth: number) => number