This response will be left intentionally vague. "Random data" doesn't tell us much. Give us more information and you will get a more useful answer. Until then, I take free reign to stab in the dark.

"best practices" for generating random dates?
I'll assume this isn't a typo and you really do want random dates. rand 0x7fffffff is an easy way to get a random UNIX epoch timestamp (dates between 1970 and somewhere in 2038), which you can manipulate with localtime and friends to just get the M/D/Y part:
$ perl -le 'print scalar localtime rand 0x7fffffff for 1 .. 5' Sun Apr 12 10:55:39 2009 Fri Nov 17 13:33:19 2023 Thu Jun 18 06:25:07 1987 Mon Jan 3 21:29:32 1994 Mon Aug 16 21:49:25 1999
It's easy to modify this to pick a random time within a certain range (provided the range is within the UNIX epoch range), just find the timestamps of the endpoints. I'll leave that to you.

blokhead


In reply to Re: Random Data by blokhead
in thread Random Data by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.