Load two random images from an array (php)

I have this array in php which holds the images.

What i want to do is use this array and then pull two random images from it but they can’t be the same.

I’ve done this in flash but for the life of me i can’t work it out in php.

I guessed i needed to loop and have another arry which would store the chosen images to check from.

Any ideas or advice would be great?

The Array and my code so far

$images = array('portfolio'=>'Qlink.gif', 'news'=>'Qlink2.gif', 'fountain'=>'Qlink3.gif', 'castle'=>'Qlink4.gif');

$chosen = array();

function create(){
$i='' ;
while ($i <= 2){

$i++;
}
}

create();