rename $rnd variable to $trd (no association with random, and it's
TextRender now anyway)