Hiyve Components - v1.0.0
    Preparing search index...

    Function choicesWith

    • The answers to offer: the right one and others drawn from the pool — never the right one twice, never a duplicate — shuffled. count is at least two; fewer are offered only when the pool is small. With soundOf, which gives each answer's sound, no two answers offered sound alike: nothing that sounds like the right one, and one name at most for any other sound — for a question asked by ear, where F♯ and G♭ cannot be told apart.

      Parameters

      • random: () => number
      • answer: string
      • pool: readonly string[]
      • count: number
      • OptionalsoundOf: (choice: string) => string | number

      Returns string[]