From 8ef6617b980ea8dfb6a24927ee7c3a1190b19fc0 Mon Sep 17 00:00:00 2001 From: Tixie Date: Wed, 4 Dec 2019 03:54:01 +0100 Subject: [PATCH] fix albums randomizer's algo --- assets/js/random.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/js/random.js b/assets/js/random.js index c242dfa..84879a0 100644 --- a/assets/js/random.js +++ b/assets/js/random.js @@ -17,7 +17,7 @@ class GoRandomAlbum { } getRandomUrl() { - const index = Math.floor(Math.random()*(this.urls.length+1)); + const index = Math.floor(Math.random()*(this.urls.length)); window.location.href = this.urls[index] } }