if my english is good, means it that I have to do your step if I use more then one array in the script.
Thanks
gvanaco
I am so heppy that I post the working script
<?
$immax_x = 200;
$immax_y = 50;
$logim = imagecreate($immax_x,$immax_y);
$lognummer = rand (10,99) .rand (10,99) . rand (10,99); //nummer maken
$background1 = imagecolorallocate($logim, 255, 255, 10); //wit
$background2 = imagecolorallocate ($logim, 255,247,128); //geel
$background3 = imagecolorallocate ($logim, 255,204,204); //roos
$background4 = imagecolorallocate ($logim, 36,239,240); //cyaan
$background5 = imagecolorallocate ($logim, 204,204,204); //licht grijs
$background6 = imagecolorallocate ($logim, 204,255,102); //licht groen
$background7 = imagecolorallocate ($logim, 255,194,124); //zalm
$color_tekst1 = imagecolorallocate ($logim, 216,27,227); //donker rood
$color_tekst2 = imagecolorallocate ($logim, 216,161,224); //donker groen
$color_tekst3 = imagecolorallocate ($logim, 80,58,129); //donker blauw
$color_tekst4 = imagecolorallocate ($logim, 150,108,202); //paars
$inputachter = array ($background1, $background2, $background3, $background4, $background5, $background6, $background7 );//
$inputtekst = array ($color_tekst1, $color_tekst2, $color_tekst3, $color_tekst4); //
$rand_inputachter = $inputachter[array_rand ($inputachter)];
$rand_inputtekst = $inputtekst[array_rand ($inputtekst)];
imagefilledrectangle($logim,0,0,$immax_x,$immax_y,$rand_inputachter);
ImageTTFText($logim, 30, 0, 50, 35,$rand_inputtekst, "CORDIA.TTF",$lognummer );
header("Content-type: image/png");
imagepng($logim);
imagedestroy($logim);
?>
Be careful with the textfont if you dont have it in that drectory, upload one and change the fontname.