Grasshopper

algorithmic modeling for Rhino

There is prob a really simple answer to this.

 

When I generate a list of numbers from the random component a get a list with dublicate numbers, how would I remove the duplicates?

 

Thanks

Views: 369

Replies to This Discussion

from the top of my head: take your list of numbers and split it into two lists; now compare list a to list b via "equals" which will give you a list of boolean true/false values and use that to cull the original list. might take some shifting and tweaking, but it's what I would try.

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service