PHP 8.2.4 Released!

Random\Randomizer::nextInt

(PHP 8 >= 8.2.0)

Random\Randomizer::nextInt正の整数を取得する

説明

public Random\Randomizer::nextInt(): int

警告

この関数は、 現在のところ詳細な情報はありません。引数のリストのみが 記述されています。

パラメータ

この関数にはパラメータはありません。

戻り値

例1 Random\Randomizer::nextInt() の例

<?php
$r
= new \Random\Randomizer();

// "次の" 整数をランダムに出力します
echo $r->nextInt(), "\n";
?>

上の例の出力は、 たとえば以下のようになります。

8041689838856078718
add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top