Grasshopper

algorithmic modeling for Rhino

I have a randomised domain between 5 and 10 controlled by number sliders set to intergers with 0 decimal places, I was expecting to see only whole numbers but instead I'm getting numbers to 1 decimal place. How could I restrict it to create 5.0, 6.0, 7.0, 8.0, 9.0, 10.0 only?

Thanks

Adam 

Views: 2057

Replies to This Discussion

Set your interval to be between 4.5 and 10.49 and then pass the result into an integer primitive.

Random also has a component option to work only on integers. Mouse-Right-Click on the middle of the component to enable this.

--

David Rutten

david@mcneel.com

Tirol, Austria

Thanks a lot David! Exactly what I was looking for!


Adam

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