Grasshopper

algorithmic modeling for Rhino

Guys. is it possible to use Dispatch with a random pattern?

I can't find a boolean component corresponding to the random one....

 

randome reduce is not useful in my case cause I need both the reduced list and the culled list...

 

thanks a lot!

 

Giulio.

 

Views: 4246

Replies to This Discussion

You could generate a list of 1's and 0's using the random number generator. Use this as your Dispatch Pattern...?
YEAH! Great! I wasn't considering the fact that 0-1 can be translated in true-false...
that was a good suggesion! ;)

thank you so much Chris!

Giulio.
Building on Chris's method, if you want control over the proportion of trues and falses, leave your random generator creating non-integer values between 0 and 1, put the results through a graph mapper, and then round the results to integers and let the dispatch component convert those to booleans as Chris suggested... you can then tweak the curve of the graph mapper to force more of the values to be 0s or 1s.

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service