<?php
for($i = 0; $i < 1000; $i++) {
$chars=\"qazxswedcvfrtgbnhyujmkiolp\";
$max=rand(5,8);
$size=StrLen($chars)-1;
$login=null;
while($max--)
$login.=$chars[rand(0,$size)];
$chars=\"qazxswedcvfrtgbnhyujmkiolp1234567890QAZXSWEDCVFRTGBNHYUJMKIOLP\";
$max=10;
$size=StrLen($chars)-1;
$pass=null;
while($max--)
$pass.=$chars[rand(0,$size)];
$pass = md5(md5(md5($pass)));
mysql_query(\"INSERT INTO `users` SET `login` = \'$login\', `pass` = \'$pass\'\"
;
}
?>
вроде норм