Grasshopper

algorithmic modeling for Rhino

Generating Variable Random Number Output with Time Constraint

Hola,

 

I'm trying to create a random number generator as an input for another component, but I want the generated number to change to another random number from within a specified domain or list after a certain interval of time automatically. I've tried a few things with the timer but so far nothing has worked.

Ideas?

 

Cheers

Views: 1975

Replies to This Discussion

quick and dirty vb.net component for that...
much easier and cleaner than trying that with regular components, i guess...

probably there is a way to get "nextDouble" between min and max numbers in VB.net (like it is with "next")?

hope it helps!
D.
Attachments:

Thank you!

Only 1 issue, if I use multiple instances of this they each generate the same random number. Is there any way to manipulate this so that they each generate unique outputs?

Here is a simple file I am working with that might give you a better idea. I'm trying to get the segments to jump to random heights independently for the lofts. If i try to set the timers to different speeds it seems one will override the timing of all the others, not sure if I'm just missing something obvious with this as well.
Attachments:

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service