added func to generate random date in range (taken from stackoverflow)