Skip to content

Instantly share code, notes, and snippets.

View Xirema's full-sized avatar

Xirema Xirema

  • Naperville, IL, USA
View GitHub Profile
==============================
=========TERSE STATS==========
==============================
Stats for Roll [[Improved Crossbow Expert vs AC0]x2]
====
Total Possible Rolls: 4000000.0 (4000000)
Mean: 31.900000
Median: +33
Mode: +33 (340320.0)
80% Range: [+24,+39]
==============================
=========TERSE STATS==========
==============================
Stats for Roll [[Level 5 Heavy Crossbow vs AC0]x2]
====
Total Possible Rolls: 4000000.0 (4000000)
Mean: 20.500000
Median: +21
Mode: +21 (341320.0)
80% Range: [+13,+27]
@Xirema
Xirema / 10d10
Created December 27, 2018 15:11
==============================
=========TERSE STATS==========
==============================
Stats for Roll [10d10]
====
Total Possible Rolls: 1.0E10 (10000000000)
Mean: 55.000000
Median: +55
Mode: +55 (4.3245764E8)
80% Range: [+43,+67]
#include<Probability/BasicRolls.h>
#include<vector>
#include<unordered_set>
#include<map>
#include<unordered_map>
#include<iostream>
#include<string>
#include<chrono>
#include<numeric>
#include<map>
#include<vector>
#include<array>
#include<iostream>
#include<iomanip>
#include<algorithm>
using arr_t = std::array<int, 6>;
std::map<arr_t, int64_t> get_rolls() {
std::map<arr_t, int64_t> map;
A few notes:
- Builds that contain Barbarian Levels show both with and without Advantage from Reckless Attack feature
- The Barb3/Monk2 Builds have 16 strength and therefore a Strength modifier of +3
The Barb5 and Monk5 Builds have a Strength (or Dexterity) of 18, and therefore have a modifier of +4
Quick stats:
- Barbarian 5: +7 to hit, 2d6+6 damage (Greatsword, +4 Strength, +2 Rage), 3 total attacks (2 from Extra Attack, 1 from Frenzy Bonus Action)
- No point using the quarterstaff, since a pure Barbarian Build doesn't care.
- Barbarian 3/Monk2: +6 to hit, 1d8+5 damage (Quarterstaff Versatile, +3 Strength, +2 Rage), 1 OR 2 attacks depending on Houserule
- +6 to hit, 1d4+5 damage (Unarmed Strike, +3 Strength, +2 Rage), 2 attacks (Flurry of Blows)