list-wrandom
list-wrandom uses an input list as a probability table for weighted random selection. Send a bang to produce a random number at the first outlet; the second outlet reports the probability table’s size for convenience.
AI Generated
This content was generated with the assistance of AI. If you notice any errors, please report them or submit a fix using Submit. Check the prompt used here.
- Download via Deken.
Open
Pdand go toToolsFind Externals. Search forlist-absand install it. Then create an object withdeclare -lib list-abs -path list-abs. Finally, uselist-wrandomor any other object fromlist-abs.