go ahead... be a heretic | |
PerlMonks |
Re: random num generatorby hardburn (Abbot) |
on Jan 20, 2004 at 14:10 UTC ( [id://322587]=note: print w/replies, xml ) | Need Help?? |
How "random" are you talking about? Computers are very deterministic, and making them generate high-quality random numbers is quite non-trivial. If you just need a little fudging in your equations, look at the rand suggestions here. If you need something that can't be easily predicted, you'll need Crypt::Random or a similar module. ---- : () { :|:& };: Note: All code is untested, unless otherwise stated
In Section
Seekers of Perl Wisdom
|
|