Hi, Marianne,
I know I've answered this before but I can't find it at the moment. Perhaps these posts will give you enough to get started.
Basically, there are two things you'll need to handle. First is selecting a random node. Since XSLT doesn't know about "random", you'll need a helper function. This can be done with exslt's math functions or you can write your own in-line javascript or c# function. Both methods are shown in these examples.
http://forum.umbraco.org/20241The second thing is to merge the results from two different sources and select a number of random items from between them. The easiest way to do that is to select ALL the nodes from the tree that meet your criteria all at one time, rather than trying to merge two different results. To do this, you'll need to flag where to find the references. If you have a unique docType, that makes it very easy. If not, you'll probably want to use the nodeid of the folders that contain your references.
cheers,
doug.
MVP 2007-2009 - Official Umbraco Trainer for North America -
Percipient Studios