瀏覽代碼

Merge branch 'master' of github.com:jaysalvat/vegas

Jay Salvat 9 年之前
父節點
當前提交
dc6c970303
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/vegas.js

+ 1 - 1
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 () {