I am using the following snippet to return the first URL in an array...

```
<?php

$custom_field = get_post_meta( $post->ID, '_images', true);

foreach ($custom_field["docs"] as $custom_fields) {
    $url1 = $custom_fields["imgurl"];
    echo $url1;
    break;
}

?>

```

What I now need to do is create another variable called $url2 which is a random image from the rest of the array.

I also need to make sure it doesn't re-select the image used for `$url1`

Anyone have a similar example I can look at?