Changes random interval code