sample
sample<
T>(population:T[],k:number):T[]
Defined in: packages/pythonlib/src/random.ts:114
Return a k-length list of unique elements chosen from the population (without replacement)
Type Parameters
| Type Parameter |
|---|
T |
Parameters
| Parameter | Type |
|---|---|
population | T[] |
k | number |
Returns
T[]