You could use a variable (R) to generate a random number (random(n)+1, where n is the number of message options). You would also need an array called messages with n elements – each element would be the path to a different message. Then, in the message box, instead of the path to the text, you would use a simple construction like messages[R].