Depending on your level of motivation, you can either script everything out so the number is randomly selected by a random script, which also activates the appropriate text for it. (Or marks a flag that the text checks before being made, depending on whether these are happening at the same time or separately)
Your other option is for Hipshot to tell you how to do it. I believe that it's possible, as the speech bubbles can handle references to other things (Proof in campaign, where the speech scripts don't actually write what they write, they just say "PassageHidden" or some key-phrase like that, which the editor than parses into "You have found a hidden passage!".