Math.random is what I was using - if it's the best way, I'll go back to it. Thanks Tom -- View this message in context: http://n2.nabble.com/Viewer-API-GetLayer-and-base-layers-tp4792901p4936382.html Sent from the MapGuide Users mailing list archive at Nabble.com.