User Tools

Site Tools


uphp:functions:rand

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
uphp:functions:rand [2017/05/22 15:24]
jeff
uphp:functions:rand [2021/09/13 05:57] (current)
Line 17: Line 17:
 </html></well> </html></well>
  
-<html>This function returns a pseudo-random whole number between <b><span style="color:blue">min<span style="color:black"></b> and <b><span style="color:blue">max<span style="color:black"></b> (inclusive)</html>+<html>This function returns a pseudo-random whole number that is greater than or equal to <b><span style="color:blue">min<span style="color:black"></b> and less than <b><span style="color:blue">max</b></html>
  
 ====Parameters==== ====Parameters====
Line 23: Line 23:
 <html><b><span style="color:blue">$min<span style="color:black"></b></html>:  Minimum possible value <html><b><span style="color:blue">$min<span style="color:black"></b></html>:  Minimum possible value
  
-<html><b><span style="color:blue">$max<span style="color:black"></b></html>:  Maximum possible value+<html><b><span style="color:blue">$max<span style="color:black"></b></html>:  Maximum, returned values will be less than this
  
 ====Return Values==== ====Return Values====
Line 31: Line 31:
 ====Example==== ====Example====
  
-===Generate 5 random numbers between 0 and 100===+===Generate 5 random numbers between 0 and 99===
  
 <code php> <code php>
uphp/functions/rand.1495466677.txt.gz · Last modified: 2021/09/13 05:56 (external edit)