public int getRandomInt(int r)
return ((random.nextInt() >>> 1) % r);
suppose u hav totalNoOfImages=10 then it will giv no in betn 0 to 9
depending on that u can put it in switch case where u are drawing bitmaps.
this will give one image no. at a time if u want 2 or 3 then use whole logic including switch in for loop
or store no in array and call that drawing function in for loop