提交 2258b069 编写于 作者: M Mr.doob

Math: randInt return value in range between low (inclusive) and high...

Math: randInt return value in range between low (inclusive) and high (exclusive). Thanks @AaronMeyers.
上级 80924dbe
......@@ -102,7 +102,7 @@ THREE.Math = {
randInt: function ( low, high ) {
return low + Math.floor( Math.random() * ( high - low + 1 ) );
return Math.floor( this.randFloat( low, high ) );
},
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册