phpCopy<?php $Random_str = uniqid(); echo "Random String:", $Random_str, "\n"; ?>
<?php $random = substr(md5(mt_rand()), 0, 7); echo $random; ?>