Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

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

by no_slogan (Deacon)
on Jul 12, 2003 at 01:20 UTC ( #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? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (3)
As of 2022-12-02 06:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?