Fix off-by-one in particle randomization

dev
gravel 11 months ago
parent 882bf854b9
commit caac5e92ab
Signed by: gravel
GPG Key ID: C0538F3C906B308F

@ -5,7 +5,7 @@
$PARTICLES = explode(" ", "$ 💵 💰 💸 💯");
function random_particle() {
global $PARTICLES;
$r = rand(0, count($PARTICLES));
$r = rand(0, count($PARTICLES) - 1);
return $PARTICLES[$r];
}
?>

Loading…
Cancel
Save