PHP Random password using md5() and rand()

Random password using md5() and rand()

<?
$b = substr(md5(rand(1,9999999)),0,8);
echo "$b";
?>