I come up with a solution, just dont even check if it exists...
PHP Code:
$random_digit=rand(00000000,99999999);
move_uploaded_file($_FILES["file"]["tmp_name"],
"images/" . $random_digit . $_FILES["file"]["name"]);
$newthumb = "images/" . $random_digit . $_FILES["file"]["name"];