ofxGuiMatrix::setValue

Hallo to all!

Well, I got another question converning ofxGuiMatrix: I know that in void
ofxGuiMatrix::setValue(int value) I can set custom values to the matrix. Now I want to
set random values: e.g. :

  
mValue = ofRandom(1,7);   
  

sets a random value in the range between int 1 and int 7, but the value updates
every time I hit the same matrixbutton - means a new random value is created. How
can i make the first randomly generated value be saved for a certain button? I guess
the numbers must be saved to xml and also be reloaded from there… well, can’t
figure out how. :roll: Or might there even be an easier way? Hope it’s not annoying
but could you give me a hint, please?

Greetz,

Ron