WordPress at a glance
function is not described

get_random_header_image() WP 3.2.0

Get random header image url from registered images in theme.

No Hooks.

Return

String. Path to header image

Usage

get_random_header_image();

Code of get random header image: wp-includes/theme.php VER 5.1.1

<?php
function get_random_header_image() {
	$random_image = _get_random_header_data();
	if ( empty( $random_image->url ) ) {
		return '';
	}
	return $random_image->url;
}