Generating good random numbers by computer is hard. With a state-of-the-art PRNG, you still need entropy sources. Those are extremely non-portable, and require low-level stuff that's not easily done in Perl.
So, I assert that some support ought to be built into the perl interpreter kernel, or in a Standard module that works on every platform.
The reason I speculate that it be in the kernel rather than a module is the availability of a cheap entropy source: the high-resolution time at which the interpreter's main loop starts the next perl instruction; and because sources need to be polled at intervals, and instead of doing more threads the main interpreter can do so as it returns to the main loop.
I'm not advocating this yet, just tossing my musings into the ring. Any other thoughts on the matter?
—John
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: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.