I want to display a random image from the bunch of images i have stored in res/drawable.
The only technique that I know is to access a particular image if you know its r
I can't think of anything you can do at runtime. You could possibly create an array of address integers (since the R.drawable.xxxx is essentially an integer address) and then use java.util.Random to select a random resource address from your array.
R.drawable.xxxx
java.util.Random