Although I'm pretty sure you aren't using the smartest way to get to where you want to be the easiest way to do this in the way you've set things up would be:
set text : choose(text1,text2,text3)
You might want to take a look at the dictionary object, the array object, things like the expression tokenat() and other text expressions, though if you are going to have that much changeing text in your project, though..
But the problem in my situation is the number of all the variables.
The simpliest way to do it would be something like this:
if(randomized_number==1) final_text=text1;
if(randomized_number==2) final_text=text2;
...and so on.
I'm trying to do sth more like that:
if(randomized_number==number) final_text=textnumber;
I'm struggling to figure out how, though.
EDIT:
....but actually your way works fine. Thanks