Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister

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.


John Davies

Comment on Re: RFC - Acme::Dice
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 the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (13)
As of 2015-11-30 09:31 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (769 votes), past polls