Voting

: two plus six?
(Example: nine)

The Note You're Voting On

ccb_bc at hotmail dot com
5 years ago
<?php
// PHP >= 7
function str_rand(int $length = 16){
$x = '';
for(
$i = 1; $i <= $length; $i++){
$x .= dechex(random_int(0,255));
}
return
substr($x, 0, $length);
}
var_dump(str_rand());
?>

<< Back to user notes page

To Top