generate random number
Posted: Tue Jan 09, 2024 5:07 pm
Hey guys,
maybe one of you creative programmers has an idea how to solve this:
i need widgetdesgner to switch my ATEM PGM BUS every 5 seconds to another source. (between Inputs 1-5)
My idea was to create a generator node wich wil generate random numbers between 1 and 5 an a script timer to execute the ATEM switching.
Switching works fine, but what happens is that the random number sometimes is the same as the previous one. so in fact there is no switching.
You understand, what I mean?
so I need to find a way to generate a number between 1 and 5 wich MUST be different from previous number.
In a second step i need to exclude one or more numbers, lets say just switch between Cam 3,4 and 5, or 1,3,4 etc.
I would like to have 5 toggle Buttons named Cam 1 to Cam 5 and press them in order to be part of the random thing.
Maybe anyone has an idea.
thanks in advance
cheers
maybe one of you creative programmers has an idea how to solve this:
i need widgetdesgner to switch my ATEM PGM BUS every 5 seconds to another source. (between Inputs 1-5)
My idea was to create a generator node wich wil generate random numbers between 1 and 5 an a script timer to execute the ATEM switching.
Switching works fine, but what happens is that the random number sometimes is the same as the previous one. so in fact there is no switching.
You understand, what I mean?
so I need to find a way to generate a number between 1 and 5 wich MUST be different from previous number.
In a second step i need to exclude one or more numbers, lets say just switch between Cam 3,4 and 5, or 1,3,4 etc.
I would like to have 5 toggle Buttons named Cam 1 to Cam 5 and press them in order to be part of the random thing.
Maybe anyone has an idea.
thanks in advance
cheers