Run script after x (random) number of seconds (Solved)

If I want x to be a random number between 1 and 10, how would I go about that?

I'm attempting to print a randomly chosen message after a random number of seconds. I've tried running the 'run script after x seconds' as an expression where x is DiceRoll "1d10", but when testing it doesn't work. Currently trying different functions/methods to get the intended result, but help would be appreciated!

Never mind, I got it to work! I just needed to add necessary nested brackets (it was more obvious in code view). Amateur mistake! Reference images in case anyone else has the same issue in the future:

This topic is now closed. Topics are closed after 60 days of inactivity.