Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: A better rand() for Win32

by pmonk4ever (Friar)
on Sep 22, 2007 at 01:58 UTC ( [id://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."

Replies are listed 'Best First'.
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.
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."

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (4)
As of 2024-04-25 15:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found