php'de rasgele sayı üreteci
you can use rand() function for that in php.
Example:
Generate random numbers between 1 to 50
<?php
echo rand(1,50);
?>
PHP rastgele dize
function rand_str() {
$characters = '0123456789-=+{}[]:;@#~.?/>,<|\!"£$%^&*()abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
$randomstr = '';
for ($i = 0; $i < random_int(50, 100); $i++) {
$randomstr .= $characters[rand(0, strlen($characters) - 1)];
}
return $randomstr;
}
PHP rasgele sayı üreteci
<?php
echo rand(1,50);
?>
php Rand int
random_int ( int $min , int $max );
PHP rastgele tamsayı
echo random_int(0,50);
PHP rasgele sayı
rand(0,10);
or
random_int(0,10)
PHP rastgele
mt_rand(1000, 9999)