Menu
News
All News
Dungeons & Dragons
Level Up: Advanced 5th Edition
Pathfinder
Starfinder
Warhammer
2d20 System
Year Zero Engine
Industry News
Reviews
Dragon Reflections
White Dwarf Reflections
Columns
Weekly Digests
Weekly News Digest
Freebies, Sales & Bundles
RPG Print News
RPG Crowdfunding News
Game Content
ENterplanetary DimENsions
Mythological Figures
Opinion
Worlds of Design
Peregrine's Nest
RPG Evolution
Other Columns
From the Freelancing Frontline
Monster ENcyclopedia
WotC/TSR Alumni Look Back
4 Hours w/RSD (Ryan Dancey)
The Road to 3E (Jonathan Tweet)
Greenwood's Realms (Ed Greenwood)
Drawmij's TSR (Jim Ward)
Community
Forums & Topics
Forum List
Latest Posts
Forum list
*Dungeons & Dragons
Level Up: Advanced 5th Edition
D&D Older Editions
*TTRPGs General
*Pathfinder & Starfinder
EN Publishing
*Geek Talk & Media
Search forums
Chat/Discord
Resources
Wiki
Pages
Latest activity
Media
New media
New comments
Search media
Downloads
Latest reviews
Search resources
EN Publishing
Store
EN5ider
Adventures in ZEITGEIST
Awfully Cheerful Engine
What's OLD is NEW
Judge Dredd & The Worlds Of 2000AD
War of the Burning Sky
Level Up: Advanced 5E
Events & Releases
Upcoming Events
Private Events
Featured Events
Socials!
EN Publishing
Twitter
BlueSky
Facebook
Instagram
EN World
BlueSky
YouTube
Facebook
Twitter
Twitch
Podcast
Features
Top 5 RPGs Compiled Charts 2004-Present
Adventure Game Industry Market Research Summary (RPGs) V1.0
Ryan Dancey: Acquiring TSR
Q&A With Gary Gygax
D&D Rules FAQs
TSR, WotC, & Paizo: A Comparative History
D&D Pronunciation Guide
Million Dollar TTRPG Kickstarters
Tabletop RPG Podcast Hall of Fame
Eric Noah's Unofficial D&D 3rd Edition News
D&D in the Mainstream
D&D & RPG History
About Morrus
Log in
Register
What's new
Search
Search
Search titles only
By:
Forums & Topics
Forum List
Latest Posts
Forum list
*Dungeons & Dragons
Level Up: Advanced 5th Edition
D&D Older Editions
*TTRPGs General
*Pathfinder & Starfinder
EN Publishing
*Geek Talk & Media
Search forums
Chat/Discord
Menu
Log in
Register
Install the app
Install
Community
General Tabletop Discussion
*Pathfinder & Starfinder
Probability in Char. Gen.
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="CRGreathouse" data-source="post: 2174225" data-attributes="member: 474"><p>Interesting. I wrote a program to calculate the answer using Charwoman Gene's specs (that is, using only integer arithmetic) and I have to admit I came to a very different answer (off by about 3). I wonder if I made a mistake in my coding, since I doubt roundoff from your method is nearly that extreme.</p><p></p><p>This program is written in C# and runs in just a few seconds. It takes 16^6 loops in the main section to finish. Instead of calculating point buy as it goes, it stores the chance of getting each </p><p></p><p>[code]int[] ways = new int[19];</p><p>long[] stat = new long[19];</p><p>int a,b,s,d,c,i,w,ch;</p><p>String o = "";</p><p>long total = 0, totalPoints1 = 0, totalPoints2 = 0;</p><p>for (i = 3; i < 19; i++)</p><p> stat[i] = 0;</p><p></p><p>for (i = 3; i < 19; i++)</p><p> ways[i] = 0;</p><p>for (a = 1; a < 7; a++)</p><p> for (b = 1; b < 7; b++)</p><p> for (c = 1; c < 7; c++)</p><p> for (d = 1; d < 7; d++)</p><p> ways[a+b+c+d-Math.Min(a,Math.Min(b,Math.Min(c,d)))]++;</p><p></p><p>for (s = 3; s < 19; s++)</p><p> for (d = 3; d < 19; d++)</p><p> for (c = 3; c < 19; c++)</p><p> for (i = 3; i < 19; i++)</p><p> for (w = 3; w < 19; w++)</p><p> for (ch = 3; ch < 19; ch++) </p><p> {</p><p> if (s < 14 && d < 14 && c < 14 && i < 14 && w < 14 && ch < 14)</p><p> break;</p><p> if (m(s) + m(d) + m(c) + m(i) + m(w) + m(ch) <= 0)</p><p> break;</p><p> stat[s] += ways[s];</p><p> stat[d] += ways[d];</p><p> stat[c] += ways[c];</p><p> stat[i] += ways[i];</p><p> stat[w] += ways[w];</p><p> stat[ch] += ways[ch];</p><p> }</p><p>for (i = 3; i < 19; i++) </p><p>{</p><p> o += "Ways to get a " + i + ": " + stat[i] + "\n";</p><p> total += stat[i];</p><p> totalPoints1 += pb1(i) * stat[i];</p><p> totalPoints2 += pb2(i) * stat[i];</p><p>}</p><p></p><p>o += "\nAverage point buy: \n";</p><p>o += "0 method: " + totalPoints1 + "/" + total + " = " + (6.0 * totalPoints1 / total) + "\n";</p><p>o += "1-for-1 method: " + totalPoints2 + "/" + total + " = " + (6.0 * totalPoints2 / total) + "\n";</p><p>return o;[/code]</p><p></p><p>The program's output:</p><p></p><p>[code]Ways to get a 3: 856665</p><p>Ways to get a 4: 3426660</p><p>Ways to get a 5: 11088250</p><p>Ways to get a 6: 23285325</p><p>Ways to get a 7: 54198070</p><p>Ways to get a 8: 88428430</p><p>Ways to get a 9: 164239075</p><p>Ways to get a 10: 220188650</p><p>Ways to get a 11: 267114100</p><p>Ways to get a 12: 372160335</p><p>Ways to get a 13: 383302860</p><p>Ways to get a 14: 432541600</p><p>Ways to get a 15: 354143435</p><p>Ways to get a 16: 299238190</p><p>Ways to get a 17: 171902790</p><p>Ways to get a 18: 76717725</p><p></p><p>Average point buy: </p><p>0 method: 16542089730/2922832160 = 33.9576591972356</p><p>1-for-1 method: 16694113165/2922832160 = 34.2697334321106[/code]</p></blockquote><p></p>
[QUOTE="CRGreathouse, post: 2174225, member: 474"] Interesting. I wrote a program to calculate the answer using Charwoman Gene's specs (that is, using only integer arithmetic) and I have to admit I came to a very different answer (off by about 3). I wonder if I made a mistake in my coding, since I doubt roundoff from your method is nearly that extreme. This program is written in C# and runs in just a few seconds. It takes 16^6 loops in the main section to finish. Instead of calculating point buy as it goes, it stores the chance of getting each [code]int[] ways = new int[19]; long[] stat = new long[19]; int a,b,s,d,c,i,w,ch; String o = ""; long total = 0, totalPoints1 = 0, totalPoints2 = 0; for (i = 3; i < 19; i++) stat[i] = 0; for (i = 3; i < 19; i++) ways[i] = 0; for (a = 1; a < 7; a++) for (b = 1; b < 7; b++) for (c = 1; c < 7; c++) for (d = 1; d < 7; d++) ways[a+b+c+d-Math.Min(a,Math.Min(b,Math.Min(c,d)))]++; for (s = 3; s < 19; s++) for (d = 3; d < 19; d++) for (c = 3; c < 19; c++) for (i = 3; i < 19; i++) for (w = 3; w < 19; w++) for (ch = 3; ch < 19; ch++) { if (s < 14 && d < 14 && c < 14 && i < 14 && w < 14 && ch < 14) break; if (m(s) + m(d) + m(c) + m(i) + m(w) + m(ch) <= 0) break; stat[s] += ways[s]; stat[d] += ways[d]; stat[c] += ways[c]; stat[i] += ways[i]; stat[w] += ways[w]; stat[ch] += ways[ch]; } for (i = 3; i < 19; i++) { o += "Ways to get a " + i + ": " + stat[i] + "\n"; total += stat[i]; totalPoints1 += pb1(i) * stat[i]; totalPoints2 += pb2(i) * stat[i]; } o += "\nAverage point buy: \n"; o += "0 method: " + totalPoints1 + "/" + total + " = " + (6.0 * totalPoints1 / total) + "\n"; o += "1-for-1 method: " + totalPoints2 + "/" + total + " = " + (6.0 * totalPoints2 / total) + "\n"; return o;[/code] The program's output: [code]Ways to get a 3: 856665 Ways to get a 4: 3426660 Ways to get a 5: 11088250 Ways to get a 6: 23285325 Ways to get a 7: 54198070 Ways to get a 8: 88428430 Ways to get a 9: 164239075 Ways to get a 10: 220188650 Ways to get a 11: 267114100 Ways to get a 12: 372160335 Ways to get a 13: 383302860 Ways to get a 14: 432541600 Ways to get a 15: 354143435 Ways to get a 16: 299238190 Ways to get a 17: 171902790 Ways to get a 18: 76717725 Average point buy: 0 method: 16542089730/2922832160 = 33.9576591972356 1-for-1 method: 16694113165/2922832160 = 34.2697334321106[/code] [/QUOTE]
Insert quotes…
Verification
Post reply
Community
General Tabletop Discussion
*Pathfinder & Starfinder
Probability in Char. Gen.
Top