I already have the normal slideshow code working. I need to know how to implement the image randomizer code .

This is the random image code.

Code:
$(document).ready(function(){

	var slideshowOptions = {
		speed : 1500,
		delay : 5000,
		pauseOnHover : true
	};
	
	var $slideshow = $(".slideshow").eq( Math.floor( Math.random() * $(".slideshow").size() ) );
	
	$slideshow.slideshow( slideshowOptions );
	
	$slideshow.show().parent().show();
	
});
This is the current normal slideshow code.

Code:
(function($){
	
	$.fn.slideshow = function( options ){
		
		var defaults = {
			speed : 1500,
			delay : 5000,
			pauseOnHover : true
		};
		
		var opts = $.extend( defaults, options );
		
		return this.each(function(){
		
			var $slideshow = $(this),
				$slideshow_items = $(this).find(">a").appendTo($("<div class='slideshow-items' ></div>").appendTo($slideshow)),
				$slideshow_descriptions = null,
				$slideshow_controls = null,
				total = $slideshow_items.size(),
				interval = null,
				working = false,
				current = -1;
				
			$slideshow_items.wrap("<div class='slideshow-item' ></div>");	
			
			$slideshow_items.each(function(){
				$("<div class='slideshow-description' ></div>").html( $(this).find("img").attr("alt")).appendTo($slideshow);
			});
			
			$slideshow_descriptions = $(".slideshow-description",$slideshow);
			
			$("<div class='slideshow-controls' ></div>").appendTo($slideshow);
			
			$slideshow_items.each(function(i){
				$("<span></span>").html( i + 1).appendTo($(".slideshow-controls",$slideshow)).bind("click",function(e){
					e.preventDefault();
					show(i);
				});
			});
			
			$slideshow_controls = $(".slideshow-controls span",$slideshow);
			
			if( opts.pauseOnHover ){
			
				$slideshow.hover(function(){ pause(); },function(){ start(); });
			}
			
			var show = function( index ){
				
				if( current !== index && !working ){
					
					working = true;
					
					pause();
					
					if( current !== -1 ){
						$slideshow_items.eq( current ).parent().fadeOut(opts.speed);
						$slideshow_controls.eq( current ).css({ opacity : 0.5 } );
						$slideshow_descriptions.eq( current ).animate({ opacity : 0, bottom : -20 } , opts.speed / 2 , "linear" , function(){
							
							$slideshow_descriptions.eq( index ).animate({ opacity : 0.7, bottom : 0 }, opts.speed / 2 , "linear");
						})
					}
					else {
						$slideshow_descriptions.eq( index ).animate({ opacity : 0.7, bottom : 0 }, opts.speed / 2 , "linear");
					}
					
					$slideshow_controls.eq( index ).css({ opacity : 1 } );
					$slideshow_items.parent().eq( index ).fadeIn(opts.speed,function(){
						working = false;
						start();
					});
					
					current = index;
				}
			}
			
			var next = function(){
				
				var nextIndex = current + 1;
				
				if( current + 1 == total ){
					nextIndex = 0;
				}
				
				show( nextIndex );
				
			}
			
			var start = function(){
				
				interval = setTimeout(function(){
					next();
				},opts.delay+opts.speed);
				
			}
			
			var pause = function(){
				
				clearTimeout( interval );
			}
			
			show( 0 );
			
			start();
		});
		
	}
	
})(jQuery);