Options
All
  • Public
  • Public/Protected
  • All
Menu

Namespace random

Index

Functions

Functions

choice

  • choice(input: any): any
  • Randomly get an element from an object or array.

    Parameters

    • input: any

    Returns any

shuffle

  • shuffle(array: any[]): any[]
  • Parameters

    • array: any[]

    Returns any[]