o meglio:

cosa = testo + (random(7) + 1);
_root.bg.testomuovi.txt = _root.testo2;