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
*TTRPGs General
5D6 drop the lowest two (math ?)
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="LazarusLong42" data-source="post: 1000146" data-attributes="member: 9620"><p>Correct on both counts; it is extremely hard to do. I figured I'd put my formula out there for reference and as a starting point, as someone had already mentioned 3d6 + 1d8 drop lowest.</p><p></p><p>I suppose it depends on your situation and what you're trying to do. If you're trying to find the average, then that might be slightly faster. If, however, you want to find the probability of rolling, say, 65 on 20d6, I'll guarantee you that one summation/nested loop (mathematical formula) is faster than 20 nested loops (your way).</p><p></p><p>For the dropping problem... the verdict is out, I'd say. I still haven't properly understood what Nathan's written above. <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=":)" /> But even if it takes three extra nested loops for dropping, four nested loops (3 + 1) to run 5d6 drop 2 is faster than your five nested loops (one per die).</p><p></p><p></p><p>Edit: I've just realized I'm mixing terminology. What you describe may be easier to <em>write</em> a program for. The difference, I suppose, would be that my program will finish today for calculating the probability of getting 65 on 20d6 (the loop will run through the same few operations 8 times).</p><p></p><p>Your suggestion will run through the same set of operations 3,656,158,440,062,976 (6^20) times. Assuming you only have one operation in your loop, and you are lucky enough to eke out a gigaflop from a Pentium machine, your program will finish running middle of next month.</p><p></p><p>So, yes, what you describe is easier to write, but it would be cumbersome to run. <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></blockquote><p></p>
[QUOTE="LazarusLong42, post: 1000146, member: 9620"] Correct on both counts; it is extremely hard to do. I figured I'd put my formula out there for reference and as a starting point, as someone had already mentioned 3d6 + 1d8 drop lowest. I suppose it depends on your situation and what you're trying to do. If you're trying to find the average, then that might be slightly faster. If, however, you want to find the probability of rolling, say, 65 on 20d6, I'll guarantee you that one summation/nested loop (mathematical formula) is faster than 20 nested loops (your way). For the dropping problem... the verdict is out, I'd say. I still haven't properly understood what Nathan's written above. :) But even if it takes three extra nested loops for dropping, four nested loops (3 + 1) to run 5d6 drop 2 is faster than your five nested loops (one per die). Edit: I've just realized I'm mixing terminology. What you describe may be easier to [i]write[/i] a program for. The difference, I suppose, would be that my program will finish today for calculating the probability of getting 65 on 20d6 (the loop will run through the same few operations 8 times). Your suggestion will run through the same set of operations 3,656,158,440,062,976 (6^20) times. Assuming you only have one operation in your loop, and you are lucky enough to eke out a gigaflop from a Pentium machine, your program will finish running middle of next month. So, yes, what you describe is easier to write, but it would be cumbersome to run. :) [/QUOTE]
Insert quotes…
Verification
Post reply
Community
General Tabletop Discussion
*TTRPGs General
5D6 drop the lowest two (math ?)
Top