How to generate Random number with a timer (with a specific Seed value)

The updateComponent function is one I wrote a long time ago for developing dynamic models (e.g. when implementing Kangaroo2, developing agent-based systems etc.). I made a few notes with links about this topic the other day over here. Which also covers the second aspect you might find confusing about the script I posted, regarding making persistent variables for e.g. making a counter:

In terms of scripting Grasshopper itself from GHPython, I’m afraid there isn’t much documentation outside of scripts posted on this forum and the old Grasshopper forum. And of course the Grasshopper API/SDK itself (which can be pretty impenetrable to be honest):

https://developer.rhino3d.com/wip/api/grasshopper/html/723c01da-9986-4db2-8f53-6f3a7494df75.htm

Edit: Here’s a great old post by @piac that might help as well:

2 Likes