diff --git a/inc/functions.php b/inc/functions.php index d9fea0a5..b215023e 100644 --- a/inc/functions.php +++ b/inc/functions.php @@ -2815,7 +2815,7 @@ function handle_dice_roll_markup(array $matches, ?string $img_path): string { $acc = ''; $text = "$dice_count d $dice_faces + $dice_offset"; for ($i = 0; $i < $dice_count; $i++) { - $res = $dice_offset + mt_rand(0, $dice_faces); + $res = $dice_offset + mt_rand(1, $dice_faces); if ($img_path === null) { $fmt = "$text $res"; } else {