Answers for "<?php echo random_int(1,6); ?>"

PHP
2

php random integer

echo random_int(0,50);
Posted by: Guest on October-03-2020
0

Random Integer in php

function genrateRandomInteger($len = 10)
		{
			$last =-1; $code = '';
			for ($i=0;$i<$len;$i++)
			{
				do {
					$next_digit=mt_rand(0,9);
				}
				while ($next_digit == $last);
				$last=$next_digit;
				$code.=$next_digit;
			}
			return $code;
		}
Posted by: Guest on December-27-2021

Code answers related to "<?php echo random_int(1,6); ?>"

Browse Popular Code Answers by Language