Grasshopper Docs

Community documentation for Grasshopper add-ons & plugins

Data
File I-O
Geometry
Mesh
Mesh-Create
Topology
View/Display

Weighted Random Choice

Generates weighted random sequences from a given list of values and weights

Inputs

NameIDDescriptionType
DataDData to sort by Weighted Random algorithmGeneric Data
WeightsWInteger Weights (one value per data item)Integer
Number of itemsnNumber of output itemsInteger
SeedSThe Seed for the Random engineInteger

Outputs

NameIDDescriptionType
Random Weighted ListLRandom Weighted List from input DataGeneric Data

Site design © Robin Rodricks.   FroGH and associated data © 2022 Co-de-iT (Computational Design Italy).  
Rhinoceros and Grasshopper are registered trademarks of Robert McNeel & Associates.  Hosted by GitHub

Report an Issue  |  Terms of Service