@vsokolov/utils - v0.32.0
    Preparing search index...

    Function randomItem

    • Get random items from array

      Type Parameters

      • T

      Parameters

      • arr: T[]

        Array of items

      • count: number

        Amount of items to select from array

      Returns T[]

      Array with randomly selected items