Skip to content

Instantly share code, notes, and snippets.

View XanNava's full-sized avatar

Alexander Nava XanNava

View GitHub Profile
@XanNava
XanNava / DiceProbabilityProgram.cs
Created December 24, 2016 09:13 — forked from nicetrysean/DiceProbabilityProgram.cs
Probability of hitting a target given the chance to reroll the lowest die
using System;
namespace Probability
{
internal class Program
{
private struct RollAttempt
{
public int Result;
public int[] Rolls;