Beefy Boxes and Bandwidth Generously Provided by pair Networks kudra
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: A better rand() for Win32

by pmonk4ever (Friar)
on Sep 22, 2007 at 01:58 UTC ( #640469=note: print w/ replies, xml ) Need Help??


in reply to A better rand() for Win32

Thanks for contributing an interesting piece of code to the Monastery Catacombs! I will enjoy taking it apart to analyze what makes it tick!!! Education is a wonderful thing...

As for the discussion which ensued from the 1st post...I am a casual observer! It started getting deep for a while...but I persevered... I will say this, I am NOT a MS fan at all, and would NOT be willing to take a security hit for a PRNG!!! No matter HOW good it is!!!

Thanks again...

ki6jux

ps...Why did you use a Perl reserved word "die" as a variable name???...

"No trees were harmed in the creation of this node. However, a rather large number of electrons were somewhat inconvenienced."


Comment on Re: A better rand() for Win32
Re^2: A better rand() for Win32
by pKai (Priest) on Sep 22, 2007 at 10:20 UTC

    die

    Last time I looked there where no reserved variable names containing lower case letters in Perl.

      Ok, then I thought "die" was a reserved word, as in 'open <FILE> or die "you dummy! there is no file by that name: $FILE" '

      I am new at this, so please bear with me.

      Thank you.

      ki6jux

      "No trees were harmed in the creation of this node. However, a rather large number of electrons were somewhat inconvenienced."

Re^2: A better rand() for Win32
by bitshiftleft (Sexton) on Oct 04, 2007 at 20:32 UTC
    Die is singular to dice. When you roll one dice you are rolling one die !!! naturally it has nothing to do with the perl die function. It wasn't in mind when I coded it that way. I could have used $singledie instead of $die to avoid confusion.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (14)
As of 2014-04-24 12:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (565 votes), past polls