Mobile Monkey Test

Is there a way to retrieve all mobile ui objects programmatically into a map or a list? My goal is to be able to choose a random partition of those objects and perform random actions on them. I want to use it this to perform monkey tests.