weighted random number generation

   1970   3   0
User Avatar
Member
336 posts
Joined: Dec. 2014
Offline
Something I've come across frequently and I'm curious how people are going about this. In a scenario where I'm grouping points based on a random number seeded by @ptnum, let's say into 4 equal amounts. How would I go about weighting those groupings? For example, adding more points to group 2 than the other groups? I hope that makes sense, shout at me if it doesn't
User Avatar
Member
7762 posts
Joined: Sept. 2011
Offline
Attribute randomize has a ‘custom discrete’ mode, that allows weighted random selection from a list of either a string or float values.
User Avatar
Member
731 posts
Joined: Dec. 2006
Offline
You can pipe the random number into a spline ramp and then tweak the ramp to weight your random seeds.
Sean Lewkiw
CG Supervisor
Machine FX - Cinesite MTL
User Avatar
Member
336 posts
Joined: Dec. 2014
Offline
Cool tips, thanks!
  • Quick Links