Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Random string generator from dataset
function genRandomString($length) {
$characters = "0123456789abcdefghipqrstuvwxyz";
$string = "";
for ($p = 0; $p < $length; $p++) {
$string .= $characters[mt_rand(0, strlen($characters) - 1)];
return $string;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.