My Perl is "perl v5.8.8 built for i486-linux-gnu-thread-multi". The application I am writing does not pertain to security or cryptography, it is for a scientific application. I'd rather keep it as portable as possible.
I'm not overly worried about the quality of the stock Perl rand() or about exhausting the numbers of random numbers it can produce. I don't think I would need more than 100,000 numbers.
I originally only wanted access to the seed, but not being able to do so using stock Perl has led me to deal with things I am not very familiar with like how to generate a seed, etc...
What method would you recommend me to do? I'm unclear about some of the differences.
Just use the stock srand() with a home-made seed like you explained earlier
Or maybe using the Math::Random module. It seems nice because it has the option to create and report a seed. But is it a higher quality random number generator. Is it slower than the stock one?
Or maybe Math::Random::RT? It seems to be higher quality but is a bit slower. But would have to be seeded manually?
Thanks for the help GrandFather!
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.