[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

My warhammer program

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 11
Thread images: 6

File: 1452261974912.jpg (153KB, 818x1157px) Image search: [Google]
1452261974912.jpg
153KB, 818x1157px
Since /sci/ couldn't help me, I figured I'd ask the one other place that might be able to help me with dice.

Simply put, I am trying to write a program that can give me the probabilities when rolling any number of arbitrarily-sided dice. So what's the likelyhood of rolling 10+ on 3d6 versus 7+ on 3d3 versus 14+ on 4d5

Problem is, I'm having trouble with the generating function.

To find the probabilities of rolling any number on the dice, you of course can count up the number of ways to get that number, and divide by the total number of dice possibilites, so there's only 1 way to get a 2 when rolling 2d6, and there are 36 combinations (6^2), so the probability of rolling 2 is 1/36.

But with more than 2 dice it gets impossible to simply list out the possible combinations. I've tried using the generating function shown here
http://www.wikihow.com/Calculate-Multiple-Dice-Probabilities
But I don't understand how the function works
>>
File: dice.png (31KB, 694x458px) Image search: [Google]
dice.png
31KB, 694x458px
>>44715084
This is the generating function they use, but what do I do with this function? What is the x variable used for? Do I set this equation equal to x^k, do I set it equal to anything?
>>
>>44715084
http://anydice.com/
>>
>>44715209
That's nice, thank you, but I want to be able to use the code and the functions in
my own program as well.
>>
>>44715084
Bumping with warhams
>>
File: 1450578476797.jpg (25KB, 320x320px) Image search: [Google]
1450578476797.jpg
25KB, 320x320px
>>44715628
>>
>>44715209
Does this guy have an explanation of the math anywhere on his site? I'm clicking around and not seeing it.
>>
>>44716130
Go take a babby's first discrete math class
>>
>>44716467
Anywhere I can do this online for free?

If it's for babies, could you explain the generating function?
>>
File: 1438021138572.png (342KB, 900x911px) Image search: [Google]
1438021138572.png
342KB, 900x911px
>>
File: 1449178182866.jpg (93KB, 607x582px) Image search: [Google]
1449178182866.jpg
93KB, 607x582px
Thread posts: 11
Thread images: 6


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.