My warhammer program

Images are sometimes not shown due to bandwidth/network limitations. Refreshing the page usually helps.

You are currently reading a thread in /tg/ - Traditional Games

You are currently reading a thread in /tg/ - Traditional Games

Thread images: 6

Anonymous

My warhammer program 2016-01-11 21:44:12 Post No. 44715084

[Report] Image search: [iqdb] [SauceNao] [Google]

My warhammer program 2016-01-11 21:44:12 Post No. 44715084

[Report] Image search: [iqdb] [SauceNao] [Google]

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

>>

>>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.

>>

File: This little girl was sent to the convent, and she lived happily ever after.jpg (174 KB, 788x1014)
Image search:
[iqdb]
[SauceNao]
[Google]

174 KB, 788x1014

>>44715084

Bumping with warhams

>>

>>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?

Thread images: 6

Thread DB ID: 406427

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 shown content originated from that site. This means that 4Archive shows their content, archived. If you need information for a Poster - contact them.

If a post contains personal/copyrighted/illegal content, then use the post's