Changed interface of function GenerateRandomdays