Template:DiscoverChance
Jump to navigation
Jump to search
This calculates the chance to Discover one of x specific choices out of a total pool of y options. In other words, this calculates the chance of drawing any of x cards out of y total possibilities in 3 chances, without replacement, as a percentage, where x and y are the inputs to this template in order. This is simply a shortcut to {{DrawChance}} with exactly 3 chances to draw a desired card.
See {{DrawChance}} for more information.
This can be used for any effect which "draws" from 3 options, not just Discover. For instance, Adapt is not technically a Discover ability, but the same probability applies.
Syntax[edit source]
{{DiscoverChance|x|y|p}}
Parameters[edit source]
- "x" - The number of desired choices.
- "y" - The total number of choices the effect is drawing from.
- "p" - Decimal places to round to. If not specified, defaults to 1 decimal place, but 2 might be desirable for comparing very low chances. The wiki calculator will automatically avoid printing 0s in decimal places if it's an exact integer.
Examples[edit source]
{{DiscoverChance|1|5}}
produces "60%".- 1 spell out of 5 left in the deck with Shadow Visions.
{{DiscoverChance|1|31|3}}
produces "9.677%".- 1 spell out of 31 available in standard format with Primordial Glyph.
{{DiscoverChance|4|8}}
produces "92.9%".- Any of 4 Hero Powers out of 8 offered by Sir Finley Mrrgglton.