Grasshopper

algorithmic modeling for Rhino

David

1. Is it expected behaviour that two different random components gives the same result?

I can only differentiate results by changing the seed value.

2. Im not sure if this is a bug or I am missing something essential.

I have to move a set of points in a random directions by a distance within controlled domain. I have created X and Y vectors with both positive and negative values while Vector XYZ gives only positive values - all elements go in (generally) one direction.

Is this also expected behaviour?

If so - how should I approach move in random directions?

Regards

Piotr

Views: 389

Replies to This Discussion

It is not a bug. The values are not true random they are Pseudo random. The seed is what changes them. This is so that the reslts are repeatable if needed. 

Here is how I get random vectors. I leave domain at default 0 -1 because with floating point between 0 and 1 every single possible direction is possible. Its the seeds that are important. 

Thanks Michael. It works great.

Regards

P

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service