when the random game exists, I'd like another random game to be immediately loaded
I've got a mame cab running Mamewah that runs a random game for 2 minutes (or whatever you want) then continues loading other random games.
I use the screensaver from
www.xs4all.nl/~michieln/luciddreamsI highly recommend it. You can set it to load an image before it loads a game too. It will show a picture of, say a Flyer full screen, then load the game.
It skips the ok screens and even skips any bad roms so there is no freezing when it tries to load a duffer. You can filter games you want to load or don't want to load.
The only problem with it is that it doesn't support the latest version of mame with it's XML, only versions that used gamelist.txt.
This is easy to get around. I just made a new folder and stuck an old mame I had in there, version 84 I think, and told the screensaver to use that to run the games. Then simply tell Mamewah to use the screensaver in the ini file.
Now when I turn my cab on, after a few minutes with no-one touching it will load up random games every 2 minutes.