RandomChoice
Generated from the engine's own definition: compute-engine's symbol, which we neither extend nor document by hand. No examples yet — the crosswalk is the reason it has a page.
RandomChoice(domain, k): a list of k independent draws from domain, with replacement. k may exceed the size of the domain — that is what replacement means. Choosing from a string yields a string.
RandomChoice((T, number) random -> T where T: string) & ((collection<any> | set<real>, number) random -> list<any>)as compute-engine declares itTyped signatures
| Type | Package | Applies |
|---|---|---|
((T, number) random -> T where T: string) & ((collection<any> | set<real>, number) random -> list<any>) | compute-engine | always |