I’m trying to create a condition that switches randomly between zero and 1 a set amount of times over a duration in seconds.
I have this so far where 8 random nodes generate a value on load, which then gets remapped between zero and the duration. Then I compare this against the current time of the patch and when greater that it adds 1, which goes into a counter clamped between zero and one.
This is far from ideal as i’d really like to be able to set the amount of times it flips the condition without having to create new random nodes, and to be able to bias it towards one state or the other.
i’ve got as far as thinking i should remap the progression of time from zero to 1, and then generate a randomSpread of values between zero and 1, but then not sure how i would go about using these to test against the progression of time, or how i could bias one state over the other.
I’m new here, and not the best at maths, so if someone could help me out if anything comes to mind that would be amazing :)