Returns the combinatorial combination of two numbers.

// The number of five-card hands possible from a standard fifty-two card deck is 2598960
const combine = Chalkboard.numb.combination(52, 5);
  • Parameters

    • n: number

      First number (total items)

    • r: number

      Second number (chosen items)

    Returns number