choice
choice<
T>(seq:string|T[]):string|T
Defined in: packages/pythonlib/src/random.ts:56
Return a random element from the non-empty sequence
Type Parameters
| Type Parameter |
|---|
T |
Parameters
| Parameter | Type |
|---|---|
seq | string | T[] |
Returns
string | T