Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^2: Six-side dice roll calculator

by Scott7477 (Chaplain)
on Jul 20, 2007 at 13:23 UTC ( #627785=note: print w/replies, xml ) Need Help??


in reply to Re: Six-side dice roll calculator
in thread Six-side dice roll calculator

Adding the functionality for N-sided dice was next on my list; needless to say it should be relatively trivial to implement. After looking through CPAN, it appears that David Cantrell's Games::Dice::Advanced module also fills the bill.

Also, as zentara points out further down this thread, davido's Custom-faced Dice snippet allows you to "define the faces of the die. That allows for traditional six sided numeric-faced dice, or alphabet-faced dice, or even, magic-eight-ball style dice."

I scanned the source code of the various dice modules at CPAN, and one thing I will say for my implementation here is that it appears to be unique in using the Statistics::Descriptive module. I found the documentation for this module to be very well written and it includes most of the basic stats functions that one might use regularly. The module's interface is completely object oriented, which I prefer. I would recommend that anyone who does stats with Perl take a look at this module.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (5)
As of 2021-06-23 21:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What does the "s" stand for in "perls"? (Whence perls)












    Results (122 votes). Check out past polls.

    Notices?