Samasaur1 / DiceKit

A Swift module for simulating dice both real and unreal
https://samasaur1.github.io/DiceKit/
Academic Free License v3.0
4 stars 4 forks source link

Add normalize() function to Chances #61

Closed Samasaur1 closed 5 years ago

Samasaur1 commented 5 years ago

Currently, you can easily create a Chances instance that has Chances that sum to greater than 1. This issue proposes a function that normalizes the Chances instance so that it sums to 1

Samasaur1 commented 5 years ago

This actually is necessary for WeightedDie to do #59