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]); },