Browse Source

Added prng() method

WestLangley 5 years ago
parent
commit
d4c4255fa7
1 changed files with 3 additions and 0 deletions
  1. 3 0
      docs/api/zh/math/MathUtils.html

+ 3 - 0
docs/api/zh/math/MathUtils.html

@@ -80,6 +80,9 @@
 		<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>
+		<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>
 		<p>
 		<p>
 		[page:Float x] - 根据其在最小值和最大值之间的位置来计算的值。 <br />
 		[page:Float x] - 根据其在最小值和最大值之间的位置来计算的值。 <br />