moved rnd to -predef-