added timer in random mode