@jossmac/lil-libs
    Preparing search index...

    Function randomChoice

    • Returns one random item from an array.

      • T
      • items: T[]

        Array to pick from.

      One uniformly random element from items.

      randomChoice(["a", "b", "c"]); // "a", "b", or "c"