Fix debug printing of random & startloop/endloop