Grasshopper

algorithmic modeling for Rhino

how can I get a series of even (not odd) random numbers?

I have created a series of random numbers resulting in floating point numbers. These numbers are then converted to integer numbers (see image attached).

The question is:

How can I get a series of even integer numbers??

Views: 1301

Replies to This Discussion

Halve your domain i.e 5 to 15 and then Multiply the results by 2. You can right click on the  Random component to specify Integers only

Yeah that was the solution I was thinking about: multiply by 2.

so simple and effective, thanks.

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