We need your help! 🔥
Please consider disabling your ad-blocker to support this website! 🔑
We are a free, community-supported website! 🥰
We only display small unobtrusive ads which help us stay online! 💯
Thank you in advance! ❤️
_
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 © 2024 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