TECH I.S.

PHP mt_getrandmax()関数

❮ PHP Mathリファレンス

mt_rand()によって返される可能性のある最大のランダム値を返します。

<?php echo(mt_getrandmax()); ?>


定義と使用法

mt_getrandmax()関数は、mt_rand()が返せる最大の値を返します。


構文

<div> mt_getrandmax();</div>

Technical Details

Return Value: mt_rand()によって返される可能な最大値

Return Type:

整数

PHP バージョン:

4+

❮ PHP Mathリファレンス