I have a code that initializes a dice object by the following code:
public function initializeDiceSides($totalSides, $fair, $maxProbability = 100) { $maxT
You could multiply the variables that you feed into mt_random by a factor of, say, 100000, and then divide the output by the same factor to get a float value.
mt_random