Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re**3: Can I seed srand() with results from rand()?

by no_slogan (Deacon)
on Jul 12, 2003 at 01:20 UTC ( [id://273585]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: Can I seed srand() with results from rand()?
in thread Can I seed srand() with results from rand()?

You could use rand() with the initial seed to generate all the other seeds you need.

... but that's a terrible idea if your rand() doesn't hide some bits from you. Gack. Stay away.

  • Comment on Re**3: Can I seed srand() with results from rand()?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://273585]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (8)
As of 2024-04-19 07:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found