Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: how to get a 64bit random number with rand() ?

by LanX (Saint)
on Mar 21, 2018 at 12:44 UTC ( [id://1211414]=note: print w/replies, xml ) Need Help??


in reply to how to get a 64bit random number with rand() ?

What's wrong with combining two 32bit random numbers?

Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Wikisyntax for the Monastery

Replies are listed 'Best First'.
Re^2: how to get a 64bit random number with rand() ?
by iglake (Novice) on Mar 21, 2018 at 21:05 UTC
    yes that is what I ended up doing, thanks !

      Be careful how you combine them. Done right its fine; done wrong and it exacerbates any limitations in the 32-bit rands.


      With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
      Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
      "Science is about questioning the status quo. Questioning authority". The enemy of (IT) success is complexity.
      In the absence of evidence, opinion is indistinguishable from prejudice. Suck that fhit

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (5)
As of 2024-03-28 15:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found