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, OSR, & D&D Variants
*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, OSR, & D&D Variants
*TTRPGs General
*Pathfinder & Starfinder
EN Publishing
*Geek Talk & Media
Search forums
Chat/Discord
Menu
Log in
Register
Install the app
Install
Upgrade your account to a Community Supporter account and remove most of the site ads.
Community
General Tabletop Discussion
D&D Older Editions, OSR, & D&D Variants
[3 or 3.5] The average character stats
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="Eitaro" data-source="post: 6232378" data-attributes="member: 6762106"><p><strong>A bit of code</strong></p><p></p><p>I was curious about what the average stat score looks like (I remember seeing it in the PHB that the most common scores are between 12 and 13, but that wasn't good enough).</p><p>I googled my question and came up with this forum. I haven't posted on this site before, so forgive me if I do something wrong. <img src="https://cdn.jsdelivr.net/joypixels/assets/8.0/png/unicode/64/1f61b.png" class="smilie smilie--emoji" loading="lazy" width="64" height="64" alt=":-P" title="Stick out tongue :-P" data-smilie="7"data-shortname=":-P" /></p><p>Also, I noticed that this thread is about 4 years old.... Hope somebody can make use of this. <img src="https://cdn.jsdelivr.net/joypixels/assets/8.0/png/unicode/64/1f642.png" class="smilie smilie--emoji" loading="lazy" width="64" height="64" alt=":-)" title="Smile :-)" data-smilie="1"data-shortname=":-)" /></p><p></p><p></p><p>[CODE]</p><p>% ˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜</p><p>function x = DiceTest(sets)</p><p>% ------------------------------------------------------------</p><p></p><p></p><p>Tot = 0;</p><p>i = 0;</p><p>while i < sets</p><p> for k = 1:6</p><p> Roll = ceil(6*rand(1,4));</p><p> % For the "reroll 1's" rule</p><p> for m = 1:4</p><p> while Roll(m) == 1</p><p> Roll(m) = ceil(6*rand);</p><p> end</p><p> end</p><p> Roll = sort(Roll);</p><p> Roll(1) = 0;</p><p> Res(k) = sum(Roll);</p><p> Mod(k) = floor(Res(k)/2-5);</p><p> end</p><p> % If the stats are good enough...</p><p> if sum(Mod) > 0 && max(Res) > 13</p><p> i = i + 1;</p><p> Tot(i) = sum(Res);</p><p> if i == 1</p><p> Stats = [Res];</p><p> else</p><p> Stats = [Stats;Res];</p><p> end</p><p> end</p><p>end</p><p>Stats;</p><p>% Gives you the average that you're looking for :-)</p><p>Avg = sum(Tot)/(sets*6)</p><p></p><p></p><p>% ˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜</p><p>return</p><p>[/CODE]</p><p></p><p>I used Octave (It's a free programming/math program). Running this for 10000 characters gave me the average of 13.475.</p><p>Hope that answers your question to your satisfaction!</p></blockquote><p></p>
[QUOTE="Eitaro, post: 6232378, member: 6762106"] [b]A bit of code[/b] I was curious about what the average stat score looks like (I remember seeing it in the PHB that the most common scores are between 12 and 13, but that wasn't good enough). I googled my question and came up with this forum. I haven't posted on this site before, so forgive me if I do something wrong. :-P Also, I noticed that this thread is about 4 years old.... Hope somebody can make use of this. :-) [CODE] % ˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜ function x = DiceTest(sets) % ------------------------------------------------------------ Tot = 0; i = 0; while i < sets for k = 1:6 Roll = ceil(6*rand(1,4)); % For the "reroll 1's" rule for m = 1:4 while Roll(m) == 1 Roll(m) = ceil(6*rand); end end Roll = sort(Roll); Roll(1) = 0; Res(k) = sum(Roll); Mod(k) = floor(Res(k)/2-5); end % If the stats are good enough... if sum(Mod) > 0 && max(Res) > 13 i = i + 1; Tot(i) = sum(Res); if i == 1 Stats = [Res]; else Stats = [Stats;Res]; end end end Stats; % Gives you the average that you're looking for :-) Avg = sum(Tot)/(sets*6) % ˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜ return [/CODE] I used Octave (It's a free programming/math program). Running this for 10000 characters gave me the average of 13.475. Hope that answers your question to your satisfaction! [/QUOTE]
Insert quotes…
Verification
Post reply
Community
General Tabletop Discussion
D&D Older Editions, OSR, & D&D Variants
[3 or 3.5] The average character stats
Top