Skip to content

Commit

Permalink
MBS-8483: warnings and bugs php 8.2 (#81)
Browse files Browse the repository at this point in the history
* MBS-8483: warnings and bugs php 8.2

---------

Co-authored-by: Philipp Memmel <[email protected]>
  • Loading branch information
kupferchen and PhMemmel authored Jan 17, 2024
1 parent 500ec96 commit f62d8bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion question.php
Original file line number Diff line number Diff line change
Expand Up @@ -587,7 +587,7 @@ public static function randomize_vars(array &$vars, array $inequalities, $timeli
* @return int|float Random number in the set {x| $min &lt;= x &lt;= $max, x = $min + n * $increment, n &isin; N}
*/
public static function random_incremented_value($min, $max, $increment) {
return $min + mt_rand(0, ($max - $min) / $increment) * $increment;
return $min + mt_rand(0, intval(($max - $min) / $increment)) * $increment;
}

/**
Expand Down

0 comments on commit f62d8bd

Please sign in to comment.