Question: save output from an MathContainer that is updated

I have a component button that gives me a random numer in a MathContainer each time a press it.

How can I store such random number output in a list. I want to have a list of values where the first value in the list is the

random number that appeared the first time I pressed the button, the second value in the list is the random number that

appeared the second time I  pressed the button etc etc

 

I know how to access output  from a MathContainer

 

with(MathML); with(DocumentTools); AA := ImportModified(GetProperty('MathContainer0', 'value'))

 

but I do not know  how to save old output that is updated everytime you press a button....?

 

Please Wait...