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

kurto321
02 Sept 2018, 07:16

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!


kurto321
02 Sept 2018, 07:26

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: https://imgur.com/a/TMS6RB8