PHP/Math/getrandmax
Both random generators provide functions to get the value of MAX_RAND.
<source lang="html4strict">
<?php echo "getrandmax() = " . getrandmax() . "\n"; echo "mt_getrandmax() = " . mt_getrandmax() . "\n"; ?>
</source>
<source lang="html4strict">
<?php echo "getrandmax() = " . getrandmax() . "\n"; echo "mt_getrandmax() = " . mt_getrandmax() . "\n"; ?>
</source>