diff --git a/src/vegas.js b/src/vegas.js index 4e31ff73..60ec7037 100755 --- a/src/vegas.js +++ b/src/vegas.js @@ -203,7 +203,7 @@ }, _random: function (array) { - return array[Math.floor(Math.random() * (array.length - 1))]; + return array[Math.floor(Math.random() * array.length)]; }, _slideShow: function () {