Grasshopper

algorithmic modeling for Rhino

I apologized ahead of time for posting a somewhat redundant discussion but I have yet to find a solution to this seemingly simple problem.

I am trying to generate a series of random numbers (where each one is unique) within a range that matches a specific data set. 

I am getting all unique numbers as desired but my data set gets way larger than I need when I use the paths as the seed generator.

I have 41 paths with 20 values 
I need 41 paths with 20 values of unique numbers (for all paths and values)

Thanks so much for the help!


Views: 542

Replies to This Discussion

Hey Charles,

I think the problem is due to feeding the random component 20 seed values for each path. You only need to give it one seed value per path. The trick is getting each seed value to be different so each random set contains different values. You should be able to do that by grafting a series component and feeding it to the S input. Check out the attached stuff.
Attachments:
David,

Thanks for the help! this is a great solution
Hi David, I am trying to take this up another step and attempt to generate random values within ranges that are unique.

What I am looking for is 11 paths with 11 values but each one of the values has a specific domain, for example:

0.) 0 to 1 -----> 11 random values from 0 to 1 (0.245,0.678,0.36,0.78,.28,0.18........)
1.) 1 to 2 -----> 11 random values from 1 to 2 (1.26,1.36,1.01,1.68,1.26,1.96.........)
3.) 2 to 3 -----> 11 random values from 2 to 3 (2.96,2.45,2.78,2.56,2.98,2.10..........)
4.) 3 to 4 and so on where I have a data set containing 11 paths with 11 values and the values fall within the specific domain.

Like my post above I have the correct path but I need to feed it the correct seed to get different values for each number. I tried grafting a series similar to the last post but it scrambles my data. Thanks so much for the help!

files...
Attachments:
Is this what you're after?

thanks for the reply Taz, I have added one more layer of complexity and cant quite seem to get through it. If I were to have what you solved above but with groups that are different for each set is this possible? You can see in my screen shot that the data appears to be set up correctly but my results are still slightly off....

Attachments:
You can trace data inheritance by taking a closer look at the path numbers (it would be a lot easier if you simplified them first, though).

Here's how the data flows in your example:


... not as you've shown with the red markup, so maybe that's a hint to start with.

I can look at this more closely later today, right now I don't have time to dive in deeper.

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