This file has been truncated, but you can view the full file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
|def get_trial(dice_sides=6, explode_on=6)|
|total = 0|
|roll = rand(dice_sides) + 1 # rand(x) is int in 0..(x-1)|
|total += roll|
|break if roll < explode_on|