arkadaşım ilgine teşekür ederim ama bu kodu kullandığım zaman

Warning: rand() expects exactly 2 parameters, 3 given in /home/xxxx/domains/xxxx.org/public_html/resim.php on line 5

Warning: imagecreatefromjpeg(images/rastgele/.jpg) [function.imagecreatefromjpeg]: failed to open stream: No such file or directory in /home/xxxx/domains/xxxxx.org/public_html/resim.php on line 7

Warning: Cannot modify header information - headers already sent by (output started at /home/xxxx/domains/xxxx.org/public_html/resim.php:5) in /home/xxxx/domains/xxxx.org/public_html/resim.php on line 8

Warning: imagejpeg(): supplied argument is not a valid Image resource in /home/xxxx/domains/xxxx.org/public_html/resim.php on line 9

Warning: imagedestroy(): supplied argument is not a valid Image resource in /home/xxxx/domains/xxxx.org/public_html/resim.php on line 10


şeklinde bir hata alıyorum bunun sebebi nedir...