@ironarachne/rng
    Preparing search index...

    Function randomSet

    • Returns a random set of items from an array. The input array is not modified.

      Type Parameters

      • T

      Parameters

      • itemCount: number

        The number of items to return.

      • items: T[]

        The array to get the items from.

      Returns T[]

      A random set of items from the array.

      If itemCount exceeds the length of items.