From d5a2f5d9fc0bb27d7441c879446c3e51be916067 Mon Sep 17 00:00:00 2001 From: Cohee <18619528+Cohee1207@users.noreply.github.com> Date: Wed, 24 Jan 2024 14:04:45 +0200 Subject: [PATCH] Fix /rand returning zero #1728 --- public/scripts/variables.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/scripts/variables.js b/public/scripts/variables.js index ff9d6bd42..a3a8b6f9d 100644 --- a/public/scripts/variables.js +++ b/public/scripts/variables.js @@ -664,7 +664,7 @@ function randValuesCallback(from, to, args) { if (args.round == 'floor') { return Math.floor(value); } - return value; + return String(value); } export function registerVariableCommands() {