I am trying to make a component in GhPython where I will be using Boolean toggle like a switch to turn it on/off and generate Random Numbers every time it runs. I am also connecting a timer so that I can control the time intervals as well.
- Importing Random and has a specific Seed Value
- Run the component by a Boolean Toggle
- Start with a Random Value (Initial Value)
- Increase or Decrease the initial value by adding or subtracting a Random Number in time (Incrementing value). This part will be performed to change the initial value in time.
The issue is - It initiates with a random number which is fine. But in Step-3, I want a different value every time it refreshes/calculates with a timer. Two random values are in play - one is static (initial value) and another one is changing (the incremental one). Per my understanding, it is not happening cause the Seed value is specified, so it is applied on both Step-2 and 3. Actually, I want different Incremental values every time it runs. So, is there a way to tackle this issue or any other way to do it? Would really appreciate that. Thanks!