Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

Re: RFC - Acme::Dice

by davies (Parson)
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.


John Davies

Replies are listed 'Best First'.
Re^2: RFC - Acme::Dice
by boftx (Deacon) 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?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1058476]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (4)
As of 2018-05-22 18:26 GMT
Find Nodes?
    Voting Booth?