mise API - v0.0.0
    Preparing search index...

    Function fortune_random

    • Picks a random fortune from the bundled collection.

      Parameters

      • OptionalmaxLines: number

        Optional upper bound on the fortune's line count, so a boot banner can favour short cookies. When the bound filters everything out, the full collection is used rather than returning nothing.

      Returns string

      The chosen fortune text (no trailing newline).