Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: RFC - Acme::Dice

by davies (Vicar)
on Oct 16, 2013 at 15:33 UTC ( #1058476=note: print w/ replies, xml ) Need Help??


in reply to Released - Acme::Dice

bias This is an integer between 0 and 100 that determines how much "weight" to place on the favored side. A value of 20 says to increase the chance of rolling the favored number by 20%. A value of 100 would mean to always roll the favored number. A value of 0 will disable favoring completely, even if a value for "favor" is given.

Are negative values allowed? In other words, could one use this to reduce the throwing of low numbers rather than increase the throwing of high numbers? The documentation says "between 0 and 100" implying that you can't, but it isn't obvious to me why this should be the case.

Regards,

John Davies


Comment on Re: RFC - Acme::Dice
Re^2: RFC - Acme::Dice
by boftx (Chaplain) on Oct 16, 2013 at 23:27 UTC

    You are correct that only non-negative integers in the stated range are allowed. That said, I am considering how to implement a "favor above" and/or "favor below" param to make it easier to "adjust" things such as "saving rolls".

    The answer to the question "Can we do this?" is always an emphatic "Yes!" Just give me enough time and money.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (8)
As of 2014-10-01 18:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    What is your favourite meta-syntactic variable name?














    Results (34 votes), past polls