phaser - v4.0.0-rc.4
    Preparing search index...
    • Returns a Random element from the array.

      Type Parameters

      • T

      Parameters

      • array: T[]

        The array to select the random entry from.

      • OptionalstartIndex: number

        An optional start index. Default 0.

      • Optionallength: number

        An optional length, the total number of elements (from the startIndex) to choose from. Default array.length.

      Returns T