How do I randomize a video?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By GasStation

I wanna know how to randomize a video playing, so it does sometimes and it doesn’t.
So my current approach is randomize a number and if i pick a certain number, it will play. or turn on the VideoPlayer node.

random numbers sound good, why would you want to do it in a different way? is there something you’re not achieving with your current method?

nyan | 2021-02-10 16:43

:bust_in_silhouette: Reply From: betauer

There are two different questions:

Let me know if you need more help with this script. I guess you have to listen for the ‘finished’ signal in order to play it again or wait some time.