added api to generate random date.