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

You’ll get a new random number on every call if you don’t set a seed. And you can sum the numbers by setting up a persistent variable (and also script the timer), like so:


200401_RandomNumber_Timer_00.gh (3.7 KB)

Edit: Here’s a version that allows you to set a seed and get a new number at each iteration:


200401_RandomNumber_Timer_01.gh (3.8 KB)

3 Likes