diff --git a/src/math/Math.js b/src/math/Math.js index 73de112c478d7c5355762a5ebb0737648b2ab629..f31bba39c46b13daeafe5d5d1bf7e282d5b853f7 100644 --- a/src/math/Math.js +++ b/src/math/Math.js @@ -89,12 +89,10 @@ THREE.Math = { }, - // Random float from <0, 1> with 16 bits of randomness - // (standard Math.random() creates repetitive patterns when applied over larger space) - random16: function () { - return ( 65280 * Math.random() + 255 * Math.random() ) / 65535; + console.warn( 'THREE.Math.random16() has been deprecated. Use Math.random() instead.' ); + return Math.random(); },