How to Display random pictures from a PhpWebGallery
PWGRandom plugin displays random pictures from a PhpWebGallery (www.phpwebgallery.net). Each photo is followed by a link on its category in the gallery. The PhpWebGallery installation has to be on the same server than your blog. It can be used as a widget or not. You will be able to choose the number of photos and the text displayed.
Feature List
* Configurable via WordPress admin interface.
* Support for WordPress 1.5, 2.0, 2.1, 2.2, 2.3 and 2.5.1
* Widget support
* Tested on PhpWebGallery 1.7 et 1.6
Installation
1. Upload pwgrandom.php to the /wp-content/plugins/ directory.
2. Activate PWGRandom through the ‘Plugins’ menu in WordPress.
3. Go to the Options menu and PWGRandom page.
4. Feel the url and path information.
5. What to do now depends on how up to date your theme is:
Modern theme with widget support
The plugin is a widget. If your theme supports widgets, and you have installed the widget plugin, adding the plugin to the sidebar is easy: Go to the presentation menu and drag and drop the widget into the sidebar. All done.
Old school theme without widget support
You need to insert the following code snippet into the sidebar template.
wp-content/themes/name of theme/sidebar.php
<?php if (function_exists(‘PWGRandom_display_picture’))
{
PWGRandom_display_picture();
}
?>
Note : you can use the old school method to add this plugin where you want in your blog.
Download PWGRandom plugin from here

I strongly encourage you to also add this plugin to PhpWebGallery extension manager [1]. This would make more obvious that PhpWebGallery and WordPress are designed to work together on the same website
[1] http://phpwebgallery.net/ext