How to randomly activate a fucntion

I have the 3 functions here that let my AI throw a projectile (spawn them with anime notify), would like to know how to activate a random one every 3 seconds or so.

Will the randomization method work for more than 20 of these functions?

Is there a better way to do this?

Please help.

Hi ,

Is this what you are looking for?
it will work for 20 functions i think, not sure if there is a better way.

Well, it randomly picks one when it’s triggered, but keeps firing the one it chose over and over. was hoping it would randomly pick one every 3 seconds. It just randomly picks one at the beginning and keeps firing it.

Sorry, let me correct that. When I select the looping option using this method, it picks the last function and repeats it always. Never randomizes.

But if I deselect the looping, it fires a random one and stops, doesn’t fire again.

Try this instead of using individual timers to call the functions.

It worked, thank you so much for your time and help.