Make Random Number | PHP

April 22nd, 2021 11:40:23 PM

					
<?php function getRandomId($min = NULL, $max = NULL) { if (is_numeric($min) && is_numeric($max)) { return mt_rand($min, $max); } else { return mt_rand(); } } ?>

Featured Posts