Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: rand / srand

by bingos (Vicar)
on Oct 24, 2006 at 07:29 UTC ( #580204=note: print w/replies, xml ) Need Help??


in reply to rand / srand

I played with srand/rand quite a bit and in the end abandoned their use in favour of Math::Random

Replies are listed 'Best First'.
Re^2: rand / srand
by xdg (Monsignor) on Oct 24, 2006 at 11:41 UTC

    I strongly suggest Math::Random::MT::Auto for any random number generation work.

    The Mersenne Twister is a fast pseudorandom number generator (PRNG) th +at is capable of providing large volumes (> 10^6004) of "high quality +" pseudorandom data to applications that may exhaust available "truly +" random data sources or system-provided PRNGs such as rand.

    -xdg

    Code written by xdg and posted on PerlMonks is public domain. It is provided as is with no warranties, express or implied, of any kind. Posted code may not have been tested. Use of posted code is at your own risk.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://580204]
help
Chatterbox?
[marto]: so apparently get out of jail free cards don't just exist in board games
[DineshYamali]: Dinesh

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (7)
As of 2018-01-23 11:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How did you see in the new year?










    Results (244 votes). Check out past polls.

    Notices?