I have a code that initializes a dice object by the following code:
public function initializeDiceSides($totalSides, $fair, $maxProbability = 100) { $maxT
A simple approach would be to use lcg_value and multiply with the range and add the min value
lcg_value
function random_float ($min,$max) { return ($min + lcg_value()*(abs($max - $min))); }