Method Math.choose()


Method choose

int(0..) choose(int(0..) n, int(0..) k)

Description

Calculate the binomial coefficient n choose k.

This is equal to n!/(k!*(n-k)!).