Added random interval generator