/php/function.getrandmax.html

https://bitbucket.org/stillzhl/manuals · HTML · 56 lines · 50 code · 6 blank · 0 comment · 0 complexity · 14584b8ee7d19dc9e72e31f0c5f6009a MD5 · raw file

  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  2. <html>
  3. <head>
  4. <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  5. <title>显示随机数最大的可能值</title>
  6. </head>
  7. <body><div class="manualnavbar" style="text-align: center;">
  8. <div class="prev" style="text-align: left; float: left;"><a href="function.fmod.html">fmod</a></div>
  9. <div class="next" style="text-align: right; float: right;"><a href="function.hexdec.html">hexdec</a></div>
  10. <div class="up"><a href="ref.math.html">Math 函数</a></div>
  11. <div class="home"><a href="index.html">PHP Manual</a></div>
  12. </div><hr /><div id="function.getrandmax" class="refentry">
  13. <div class="refnamediv">
  14. <h1 class="refname">getrandmax</h1>
  15. <p class="verinfo">(PHP 4, PHP 5)</p><p class="refpurpose"><span class="refname">getrandmax</span> &mdash; <span class="dc-title">显示随机数最大的可能值</span></p>
  16. </div>
  17. <div class="refsect1 description" id="refsect1-function.getrandmax-description">
  18. <h3 class="title">说明</h3>
  19. <div class="methodsynopsis dc-description">
  20. <span class="type">int</span> <span class="methodname"><strong>getrandmax</strong></span>
  21. ( <span class="methodparam">void</span>
  22. )</div>
  23. <p class="simpara">
  24. 返回调用
  25. <span class="function"><a href="function.rand.html" class="function">rand()</a></span> 可能返回的最大值
  26. </p>
  27. </div>
  28. <div class="refsect1 returnvalues" id="refsect1-function.getrandmax-returnvalues">
  29. <h3 class="title">返回值</h3>
  30. <p class="para">
  31. <span class="function"><a href="function.rand.html" class="function">rand()</a></span> 返回
  32. 随机数可能返回的最大值
  33. </p>
  34. </div>
  35. <div class="refsect1 seealso" id="refsect1-function.getrandmax-seealso">
  36. <h3 class="title">参见</h3>
  37. <p class="para">
  38. <ul class="simplelist">
  39. <li class="member"> <span class="function"><a href="function.rand.html" class="function" rel="rdfs-seeAlso">rand()</a> - 产生一个随机整数</span></li>
  40. <li class="member"> <span class="function"><a href="function.srand.html" class="function" rel="rdfs-seeAlso">srand()</a> - 播下随机数发生器种子</span></li>
  41. <li class="member"> <span class="function"><a href="function.mt-getrandmax.html" class="function" rel="rdfs-seeAlso">mt_getrandmax()</a> - 显示随机数的最大可能值</span></li>
  42. </ul>
  43. </p>
  44. </div>
  45. </div><hr /><div class="manualnavbar" style="text-align: center;">
  46. <div class="prev" style="text-align: left; float: left;"><a href="function.fmod.html">fmod</a></div>
  47. <div class="next" style="text-align: right; float: right;"><a href="function.hexdec.html">hexdec</a></div>
  48. <div class="up"><a href="ref.math.html">Math 函数</a></div>
  49. <div class="home"><a href="index.html">PHP Manual</a></div>
  50. </div></body></html>