From c1426af864e8615d0872bf1c8309f05341f3675c Mon Sep 17 00:00:00 2001 From: Tipx-L <138244655+Tipx-L@users.noreply.github.com> Date: Wed, 9 Aug 2023 11:20:06 -0700 Subject: [PATCH] Use get.rand instead. --- game/game.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/game/game.js b/game/game.js index 6a6e7efa2..1bfd4f8bd 100644 --- a/game/game.js +++ b/game/game.js @@ -11121,7 +11121,7 @@ node_pos=mapping.shift(); } else if(mapping=='random'){ - abs=Math.floor(Math.random()*number_of_tracks); + abs=get.rand(number_of_tracks); node_pos=abs; } var combo=0; @@ -11228,7 +11228,7 @@ } else if(mapping=='random'){ while(node_pos==abs){ - node_pos=Math.floor(Math.random()*number_of_tracks); + node_pos=get.rand(number_of_tracks); } abs=node_pos; }