WestLangley пре 5 година
родитељ
комит
14c138b8d8
4 измењених фајлова са 5 додато и 5 уклоњено
  1. 1 1
      docs/api/en/math/MathUtils.html
  2. 1 1
      docs/api/zh/math/MathUtils.html
  3. 1 1
      src/math/MathUtils.d.ts
  4. 2 2
      src/math/MathUtils.js

+ 1 - 1
docs/api/en/math/MathUtils.html

@@ -83,7 +83,7 @@
 		<h3>[method:Integer randInt]( [param:Integer low], [param:Integer high] )</h3>
 		<h3>[method:Integer randInt]( [param:Integer low], [param:Integer high] )</h3>
 		<p>Random integer in the interval [page:Float low] to [page:Float high].</p>
 		<p>Random integer in the interval [page:Float low] to [page:Float high].</p>
 
 
-		<h3>[method:Float prng]( [param:Integer seed] )</h3>
+		<h3>[method:Float seededRandom]( [param:Integer seed] )</h3>
 		<p>Deterministic pseudo-random float in the interval [ 0, 1 ]. The integer [page:Integer seed] is optional.</p>
 		<p>Deterministic pseudo-random float in the interval [ 0, 1 ]. The integer [page:Integer seed] is optional.</p>
 
 
 		<h3>[method:Float smoothstep]( [param:Float x], [param:Float min], [param:Float max] )</h3>
 		<h3>[method:Float smoothstep]( [param:Float x], [param:Float min], [param:Float max] )</h3>

+ 1 - 1
docs/api/zh/math/MathUtils.html

@@ -80,7 +80,7 @@
 		<h3>[method:Integer randInt]( [param:Integer low], [param:Integer high] )</h3>
 		<h3>[method:Integer randInt]( [param:Integer low], [param:Integer high] )</h3>
 		<p>在区间[page:Float low] 到 [page:Float high]随机一个整数。</p>
 		<p>在区间[page:Float low] 到 [page:Float high]随机一个整数。</p>
 
 
-		<h3>[method:Float prng]( [param:Integer seed] )</h3>
+		<h3>[method:Float seededRandom]( [param:Integer seed] )</h3>
 		<p>Deterministic pseudo-random float in the interval [ 0, 1 ]. The integer [page:Integer seed] is optional.</p>
 		<p>Deterministic pseudo-random float in the interval [ 0, 1 ]. The integer [page:Integer seed] is optional.</p>
 
 
 		<h3>[method:Float smoothstep]( [param:Float x], [param:Float min], [param:Float max] )</h3>
 		<h3>[method:Float smoothstep]( [param:Float x], [param:Float min], [param:Float max] )</h3>

+ 1 - 1
src/math/MathUtils.d.ts

@@ -66,7 +66,7 @@ export namespace MathUtils {
 	/**
 	/**
 	 * Deterministic pseudo-random float in the interval [ 0, 1 ].
 	 * Deterministic pseudo-random float in the interval [ 0, 1 ].
 	 */
 	 */
-	export function prng( seed?: number ): number;
+	export function seededRandom( seed?: number ): number;
 
 
 	export function degToRad( degrees: number ): number;
 	export function degToRad( degrees: number ): number;
 
 

+ 2 - 2
src/math/MathUtils.js

@@ -117,11 +117,11 @@ const MathUtils = {
 
 
 	// Deterministic pseudo-random float in the interval [ 0, 1 ]
 	// Deterministic pseudo-random float in the interval [ 0, 1 ]
 
 
-	prng: function () {
+	seededRandom: function () {
 
 
 		var seed = 1234567;
 		var seed = 1234567;
 
 
-		return function prng( s ) {
+		return function seededRandom( s ) {
 
 
 			if ( s !== undefined ) seed = s % 2147483647;
 			if ( s !== undefined ) seed = s % 2147483647;