From f4bb3b4c7540a78b1910188079685db29ceb26bd Mon Sep 17 00:00:00 2001 From: Supraboy981322 <97927259+Supraboy981322@users.noreply.github.com> Date: Tue, 14 Nov 2023 08:38:15 -0600 Subject: [PATCH] fixed? --- proto-and-wip/vterm-break/script.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/proto-and-wip/vterm-break/script.js b/proto-and-wip/vterm-break/script.js index 58a658d..9bb8332 100644 --- a/proto-and-wip/vterm-break/script.js +++ b/proto-and-wip/vterm-break/script.js @@ -28,9 +28,9 @@ $('body').terminal({ 'Err. no command for ' + what); } }, - hakr: function(what) { + hakr: function() { let syntax = ["1","2","3","4","5","6","7","8","9","10"]; - let ranNum = Math.random() * (syntax.length - 1) + 1; + var ranNum = Math.round(Math.random() * (syntax.length - 1) + 1); this.echo('> ' + syntax[ranNum]); },