algonim
    Preparing search index...

    Function makeRandomizedStupidClearStategy

    • Creates an useful implementation of stupidCompress's clearStrategy, that starts out with one clear, and every time the chance p passes, it's increased by one.

      Parameters

      • p: number

        Chance to keep increasing amount of clears. Be careful to always pass numbers less than 1, otherwise the resulting function won't halt.

      Returns () => number