I have a code that initializes a dice object by the following code:
public function initializeDiceSides($totalSides, $fair, $maxProbability = 100) { $maxT
Make sure the value of $maxProbability and $totalSides are floats. If they are integers, the result will be typed as an integer.