Does this AnyDice function accurately calculate the number of ogres you make unconcious with three 4th-level castings of Sleep?Help Calculating Dice Odds for a Unique d6 Dice PoolHow can I execute code depending on a die value in AnyDice?How do I find the highest number rolled in a pool if dice, and the number of times it is rolled using AnyDice?Help Writing an AnyDice Function for a Weird Dice MechanicAnyDice function to use a die as high/low flip and criticalImplementing multiattack in AnyDiceHow do I model the fighter's Great Weapon Fighting fighting style in Anydice?How can I write and compare these formulas using Anydice?Exploding “D9” success-counting pools in anydice?AnyDice formula for rolling 2d20 and dropping farthest value from 10

What options are left, if Britain cannot decide?

I need to drive a 7/16" nut but am unsure how to use the socket I bought for my screwdriver

How to explain that I do not want to visit a country due to personal safety concern?

Can unconscious characters be unwilling?

What has been your most complicated TikZ drawing?

Why is stat::st_size 0 for devices but at the same time lseek defines the device size correctly?

Is a lawful good "antagonist" effective?

How to generate globally unique ids for different tables of the same database?

Implicit nil checks in algorithms

Why is a Java array index expression evaluated before checking if the array reference expression is null?

Brexit - No Deal Rejection

Informing my boss about remarks from a nasty colleague

Can hydraulic brake levers get hot when brakes overheat?

Running a subshell from the middle of the current command

PTIJ: is Mi Yodeya found in the Torah codes?

What is the greatest age difference between a married couple in Tanach?

Can the damage from a Talisman of Pure Good (or Ultimate Evil) be non-lethal?

Why would a flight no longer considered airworthy be redirected like this?

Theorems like the Lovász Local Lemma?

Variant calling without matched normal sample

My story is written in English, but is set in my home country. What language should I use for the dialogue?

Do I need life insurance if I can cover my own funeral costs?

SQL Server Primary Login Restrictions

Ban on all campaign finance?



Does this AnyDice function accurately calculate the number of ogres you make unconcious with three 4th-level castings of Sleep?


Help Calculating Dice Odds for a Unique d6 Dice PoolHow can I execute code depending on a die value in AnyDice?How do I find the highest number rolled in a pool if dice, and the number of times it is rolled using AnyDice?Help Writing an AnyDice Function for a Weird Dice MechanicAnyDice function to use a die as high/low flip and criticalImplementing multiattack in AnyDiceHow do I model the fighter's Great Weapon Fighting fighting style in Anydice?How can I write and compare these formulas using Anydice?Exploding “D9” success-counting pools in anydice?AnyDice formula for rolling 2d20 and dropping farthest value from 10













3












$begingroup$


Say we have three ogres, and want to put them to sleep as a handful of level 7 casters with the sleep spell. We want to know how many of them, on average, will get put to sleep.



I tried to make an AnyDice function that searches a listing of all of the results of 11d8 for the HP totals that would put to sleep one of the ogres (using the average of 59 HP). Is this AnyDice function accurate to the goal?



output [count 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88 in 3d(11d8)]



If not, how would I properly create the function?










share|improve this question











$endgroup$











  • $begingroup$
    @Sdjz added. Good thought
    $endgroup$
    – David Coffron
    4 hours ago















3












$begingroup$


Say we have three ogres, and want to put them to sleep as a handful of level 7 casters with the sleep spell. We want to know how many of them, on average, will get put to sleep.



I tried to make an AnyDice function that searches a listing of all of the results of 11d8 for the HP totals that would put to sleep one of the ogres (using the average of 59 HP). Is this AnyDice function accurate to the goal?



output [count 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88 in 3d(11d8)]



If not, how would I properly create the function?










share|improve this question











$endgroup$











  • $begingroup$
    @Sdjz added. Good thought
    $endgroup$
    – David Coffron
    4 hours ago













3












3








3





$begingroup$


Say we have three ogres, and want to put them to sleep as a handful of level 7 casters with the sleep spell. We want to know how many of them, on average, will get put to sleep.



I tried to make an AnyDice function that searches a listing of all of the results of 11d8 for the HP totals that would put to sleep one of the ogres (using the average of 59 HP). Is this AnyDice function accurate to the goal?



output [count 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88 in 3d(11d8)]



If not, how would I properly create the function?










share|improve this question











$endgroup$




Say we have three ogres, and want to put them to sleep as a handful of level 7 casters with the sleep spell. We want to know how many of them, on average, will get put to sleep.



I tried to make an AnyDice function that searches a listing of all of the results of 11d8 for the HP totals that would put to sleep one of the ogres (using the average of 59 HP). Is this AnyDice function accurate to the goal?



output [count 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88 in 3d(11d8)]



If not, how would I properly create the function?







dnd-5e anydice






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 1 hour ago









V2Blast

24.6k383155




24.6k383155










asked 4 hours ago









David CoffronDavid Coffron

37.6k3129263




37.6k3129263











  • $begingroup$
    @Sdjz added. Good thought
    $endgroup$
    – David Coffron
    4 hours ago
















  • $begingroup$
    @Sdjz added. Good thought
    $endgroup$
    – David Coffron
    4 hours ago















$begingroup$
@Sdjz added. Good thought
$endgroup$
– David Coffron
4 hours ago




$begingroup$
@Sdjz added. Good thought
$endgroup$
– David Coffron
4 hours ago










2 Answers
2






active

oldest

votes


















7












$begingroup$

The function is correct but can be made simpler



The function makes sense from a theoretical point of view (you are counting the number of times one of the listed numbers appears when doing 11d8 three times) and from practical corroboration from Xirema's answer.



However, it seems to be a particularly taxing function for anydice. Indeed, when changing it to 4 times instead of 3, anydice refused to provide results because it exceeded the maximum execution time.



A simpler and faster way to do the same function would be this anydice function:



output 3d(11d8 > 58)


Which is equivalent, also helps show that your initial thoughts were correct but is much faster and you can also use it for bigger values without anydice complaining.



Naturally this is not as versatile as your specific listing of each possible result but since you only care about results bigger than the creature's HP in this case it may work better.






share|improve this answer











$endgroup$












  • $begingroup$
    A slightly more versatile (but still fast) version would be 3d[count 59..88 in 11d8 + 0]. The + 0 makes AnyDice sum the 11d8 roll before passing it to [count VALUES in SEQUENCE]. In any case, the major speedup in both solutions comes from moving the counting / comparison inside the 3d(...).
    $endgroup$
    – Ilmari Karonen
    11 mins ago



















5












$begingroup$

This function appears to be correct



The output of the function in Anydice is



beginarray
hline
textNumber & textProbability \ hline
0 & 68.19% \ hline
1 & 27.85% \ hline
2 & 3.79% \ hline
3 & 0.17% \ hline
endarray



Using an independent method, I was able to calculate [within an acceptable Margin of Error] identical odds:



beginarrayl
hline
textNumber & textTrials & textProbability \ hline
0 & 432224441369339628206761607168 (4.322 * 10^29) & 68.1930% \ hline
1 & 176489190284293025714047057920 (1.765 * 10^29) & 27.8415% \ hline
2 & 24021805421679657469725081600 (2.402 * 10^28) & 3.7900% \ hline
3 & 1089863038802389357817856000 (1.090 * 10^27) & 0.1720% \ hline
endarray



So because these two methods appear to have identical outcomes, I'm led to conclude that the function you've provided is correct.






share|improve this answer











$endgroup$












    Your Answer





    StackExchange.ifUsing("editor", function ()
    return StackExchange.using("mathjaxEditing", function ()
    StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix)
    StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["\$", "\$"]]);
    );
    );
    , "mathjax-editing");

    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "122"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    noCode: true, onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













    draft saved

    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2frpg.stackexchange.com%2fquestions%2f143150%2fdoes-this-anydice-function-accurately-calculate-the-number-of-ogres-you-make-unc%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    7












    $begingroup$

    The function is correct but can be made simpler



    The function makes sense from a theoretical point of view (you are counting the number of times one of the listed numbers appears when doing 11d8 three times) and from practical corroboration from Xirema's answer.



    However, it seems to be a particularly taxing function for anydice. Indeed, when changing it to 4 times instead of 3, anydice refused to provide results because it exceeded the maximum execution time.



    A simpler and faster way to do the same function would be this anydice function:



    output 3d(11d8 > 58)


    Which is equivalent, also helps show that your initial thoughts were correct but is much faster and you can also use it for bigger values without anydice complaining.



    Naturally this is not as versatile as your specific listing of each possible result but since you only care about results bigger than the creature's HP in this case it may work better.






    share|improve this answer











    $endgroup$












    • $begingroup$
      A slightly more versatile (but still fast) version would be 3d[count 59..88 in 11d8 + 0]. The + 0 makes AnyDice sum the 11d8 roll before passing it to [count VALUES in SEQUENCE]. In any case, the major speedup in both solutions comes from moving the counting / comparison inside the 3d(...).
      $endgroup$
      – Ilmari Karonen
      11 mins ago
















    7












    $begingroup$

    The function is correct but can be made simpler



    The function makes sense from a theoretical point of view (you are counting the number of times one of the listed numbers appears when doing 11d8 three times) and from practical corroboration from Xirema's answer.



    However, it seems to be a particularly taxing function for anydice. Indeed, when changing it to 4 times instead of 3, anydice refused to provide results because it exceeded the maximum execution time.



    A simpler and faster way to do the same function would be this anydice function:



    output 3d(11d8 > 58)


    Which is equivalent, also helps show that your initial thoughts were correct but is much faster and you can also use it for bigger values without anydice complaining.



    Naturally this is not as versatile as your specific listing of each possible result but since you only care about results bigger than the creature's HP in this case it may work better.






    share|improve this answer











    $endgroup$












    • $begingroup$
      A slightly more versatile (but still fast) version would be 3d[count 59..88 in 11d8 + 0]. The + 0 makes AnyDice sum the 11d8 roll before passing it to [count VALUES in SEQUENCE]. In any case, the major speedup in both solutions comes from moving the counting / comparison inside the 3d(...).
      $endgroup$
      – Ilmari Karonen
      11 mins ago














    7












    7








    7





    $begingroup$

    The function is correct but can be made simpler



    The function makes sense from a theoretical point of view (you are counting the number of times one of the listed numbers appears when doing 11d8 three times) and from practical corroboration from Xirema's answer.



    However, it seems to be a particularly taxing function for anydice. Indeed, when changing it to 4 times instead of 3, anydice refused to provide results because it exceeded the maximum execution time.



    A simpler and faster way to do the same function would be this anydice function:



    output 3d(11d8 > 58)


    Which is equivalent, also helps show that your initial thoughts were correct but is much faster and you can also use it for bigger values without anydice complaining.



    Naturally this is not as versatile as your specific listing of each possible result but since you only care about results bigger than the creature's HP in this case it may work better.






    share|improve this answer











    $endgroup$



    The function is correct but can be made simpler



    The function makes sense from a theoretical point of view (you are counting the number of times one of the listed numbers appears when doing 11d8 three times) and from practical corroboration from Xirema's answer.



    However, it seems to be a particularly taxing function for anydice. Indeed, when changing it to 4 times instead of 3, anydice refused to provide results because it exceeded the maximum execution time.



    A simpler and faster way to do the same function would be this anydice function:



    output 3d(11d8 > 58)


    Which is equivalent, also helps show that your initial thoughts were correct but is much faster and you can also use it for bigger values without anydice complaining.



    Naturally this is not as versatile as your specific listing of each possible result but since you only care about results bigger than the creature's HP in this case it may work better.







    share|improve this answer














    share|improve this answer



    share|improve this answer








    edited 3 hours ago

























    answered 3 hours ago









    SdjzSdjz

    13.1k462106




    13.1k462106











    • $begingroup$
      A slightly more versatile (but still fast) version would be 3d[count 59..88 in 11d8 + 0]. The + 0 makes AnyDice sum the 11d8 roll before passing it to [count VALUES in SEQUENCE]. In any case, the major speedup in both solutions comes from moving the counting / comparison inside the 3d(...).
      $endgroup$
      – Ilmari Karonen
      11 mins ago

















    • $begingroup$
      A slightly more versatile (but still fast) version would be 3d[count 59..88 in 11d8 + 0]. The + 0 makes AnyDice sum the 11d8 roll before passing it to [count VALUES in SEQUENCE]. In any case, the major speedup in both solutions comes from moving the counting / comparison inside the 3d(...).
      $endgroup$
      – Ilmari Karonen
      11 mins ago
















    $begingroup$
    A slightly more versatile (but still fast) version would be 3d[count 59..88 in 11d8 + 0]. The + 0 makes AnyDice sum the 11d8 roll before passing it to [count VALUES in SEQUENCE]. In any case, the major speedup in both solutions comes from moving the counting / comparison inside the 3d(...).
    $endgroup$
    – Ilmari Karonen
    11 mins ago





    $begingroup$
    A slightly more versatile (but still fast) version would be 3d[count 59..88 in 11d8 + 0]. The + 0 makes AnyDice sum the 11d8 roll before passing it to [count VALUES in SEQUENCE]. In any case, the major speedup in both solutions comes from moving the counting / comparison inside the 3d(...).
    $endgroup$
    – Ilmari Karonen
    11 mins ago














    5












    $begingroup$

    This function appears to be correct



    The output of the function in Anydice is



    beginarray
    hline
    textNumber & textProbability \ hline
    0 & 68.19% \ hline
    1 & 27.85% \ hline
    2 & 3.79% \ hline
    3 & 0.17% \ hline
    endarray



    Using an independent method, I was able to calculate [within an acceptable Margin of Error] identical odds:



    beginarrayl
    hline
    textNumber & textTrials & textProbability \ hline
    0 & 432224441369339628206761607168 (4.322 * 10^29) & 68.1930% \ hline
    1 & 176489190284293025714047057920 (1.765 * 10^29) & 27.8415% \ hline
    2 & 24021805421679657469725081600 (2.402 * 10^28) & 3.7900% \ hline
    3 & 1089863038802389357817856000 (1.090 * 10^27) & 0.1720% \ hline
    endarray



    So because these two methods appear to have identical outcomes, I'm led to conclude that the function you've provided is correct.






    share|improve this answer











    $endgroup$

















      5












      $begingroup$

      This function appears to be correct



      The output of the function in Anydice is



      beginarray
      hline
      textNumber & textProbability \ hline
      0 & 68.19% \ hline
      1 & 27.85% \ hline
      2 & 3.79% \ hline
      3 & 0.17% \ hline
      endarray



      Using an independent method, I was able to calculate [within an acceptable Margin of Error] identical odds:



      beginarrayl
      hline
      textNumber & textTrials & textProbability \ hline
      0 & 432224441369339628206761607168 (4.322 * 10^29) & 68.1930% \ hline
      1 & 176489190284293025714047057920 (1.765 * 10^29) & 27.8415% \ hline
      2 & 24021805421679657469725081600 (2.402 * 10^28) & 3.7900% \ hline
      3 & 1089863038802389357817856000 (1.090 * 10^27) & 0.1720% \ hline
      endarray



      So because these two methods appear to have identical outcomes, I'm led to conclude that the function you've provided is correct.






      share|improve this answer











      $endgroup$















        5












        5








        5





        $begingroup$

        This function appears to be correct



        The output of the function in Anydice is



        beginarray
        hline
        textNumber & textProbability \ hline
        0 & 68.19% \ hline
        1 & 27.85% \ hline
        2 & 3.79% \ hline
        3 & 0.17% \ hline
        endarray



        Using an independent method, I was able to calculate [within an acceptable Margin of Error] identical odds:



        beginarrayl
        hline
        textNumber & textTrials & textProbability \ hline
        0 & 432224441369339628206761607168 (4.322 * 10^29) & 68.1930% \ hline
        1 & 176489190284293025714047057920 (1.765 * 10^29) & 27.8415% \ hline
        2 & 24021805421679657469725081600 (2.402 * 10^28) & 3.7900% \ hline
        3 & 1089863038802389357817856000 (1.090 * 10^27) & 0.1720% \ hline
        endarray



        So because these two methods appear to have identical outcomes, I'm led to conclude that the function you've provided is correct.






        share|improve this answer











        $endgroup$



        This function appears to be correct



        The output of the function in Anydice is



        beginarray
        hline
        textNumber & textProbability \ hline
        0 & 68.19% \ hline
        1 & 27.85% \ hline
        2 & 3.79% \ hline
        3 & 0.17% \ hline
        endarray



        Using an independent method, I was able to calculate [within an acceptable Margin of Error] identical odds:



        beginarrayl
        hline
        textNumber & textTrials & textProbability \ hline
        0 & 432224441369339628206761607168 (4.322 * 10^29) & 68.1930% \ hline
        1 & 176489190284293025714047057920 (1.765 * 10^29) & 27.8415% \ hline
        2 & 24021805421679657469725081600 (2.402 * 10^28) & 3.7900% \ hline
        3 & 1089863038802389357817856000 (1.090 * 10^27) & 0.1720% \ hline
        endarray



        So because these two methods appear to have identical outcomes, I'm led to conclude that the function you've provided is correct.







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited 4 hours ago

























        answered 4 hours ago









        XiremaXirema

        21.3k263126




        21.3k263126



























            draft saved

            draft discarded
















































            Thanks for contributing an answer to Role-playing Games Stack Exchange!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid


            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.

            Use MathJax to format equations. MathJax reference.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2frpg.stackexchange.com%2fquestions%2f143150%2fdoes-this-anydice-function-accurately-calculate-the-number-of-ogres-you-make-unc%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Best approach to update all entries in a list that is paginated?Best way to add items to a paginated listChoose Your Country: Best Usability approachUpdate list when a user is viewing the list without annoying themWhen would the best day to update your webpage be?What should happen when I add a Row to a paginated, sorted listShould I adopt infinite scrolling or classical pagination?How to show user that page objects automatically updateWhat is the best location to locate the comments section in a list pageBest way to combine filtering and selecting items in a listWhen one of two inputs must be updated to satisfy a consistency criteria, which should you update (if at all)?

            Вунгтау (аеропорт) Загальні відомості | Див. також | Посилання | Навігаційне меню10°22′00″ пн. ш. 107°05′00″ сх. д. / 10.36667° пн. ш. 107.08333° сх. д. / 10.36667; 107.0833310°22′00″ пн. ш. 107°05′00″ сх. д. / 10.36667° пн. ш. 107.08333° сх. д. / 10.36667; 107.083337731608Vinh AirportVinh airport facelift improves serviceвиправивши або дописавши їївиправивши або дописавши їїр

            Тонконіг бульбистий Зміст Опис | Поширення | Екологія | Господарське значення | Примітки | Див. також | Література | Джерела | Посилання | Навігаційне меню1114601320038-241116202404kew-435458Poa bulbosaЭлектронный каталог сосудистых растений Азиатской России [Електронний каталог судинних рослин Азіатської Росії]Малышев Л. Л. Дикие родичи культурных растений. Poa bulbosa L. - Мятлик луковичный. [Малишев Л. Л. Дикі родичи культурних рослин. Poa bulbosa L. - Тонконіг бульбистий.]Мятлик (POA) Сем. Злаки (Мятликовые) [Тонконіг (POA) Род. Злаки (Тонконогові)]Poa bulbosa Linnaeus, Sp. Pl. 1: 70. 1753. 鳞茎早熟禾 lin jing zao shu he (Description from Flora of China) [Poa bulbosa Linnaeus, Sp. Pl. 1: 70. 1753. 鳞茎早熟禾 lin jing zao shu he (Опис від Флора Китаю)]Poa bulbosa L. – lipnice cibulkatá / lipnica cibulkatáPoa bulbosa в базі даних Poa bulbosa на сайті Poa bulbosa в базі даних «Global Biodiversity Information Facility» (GBIF)Poa bulbosa в базі даних «Euro + Med PlantBase» — інформаційному ресурсі для Євро-середземноморського розмаїття рослинPoa bulbosa L. на сайті «Плантариум»