added api to generate random date.
added api to generate random date.