Newsgroups : Borland : borland.public.delphi.nativeapi.win32 : 2007 Jan : Random Date

www.cryer.info
Managed Newsgroup Archive

Random Date

Subject:Random Date
Posted by:"H. Bouty" (hbou..@gmail.com)
Date:Tue, 2 Jan 2007 01:48:50

Hi All,

I want to make a random date by only have an information about an integer,
e.g. when user put 70, I want to generate a random date between Januari 1 to
December 31 in year of 1937. I can randomize it in the month part (randomize
1-12) and date part (1-28 to waive the leap year), however I believe there's
a nice solution about this.

Anybody may help me?

TIA,

HB

Replies:

www.cryer.info
Managed Newsgroup Archive