int[] Srcimagers={R.drawable.shake,R.drawable.shake1,R.drawable.shake2,R.drawable.shake3};
//随机生成图片
Random random=new Random();
int strImage=Srcimagers[random.nextInt(4)];
//图片路径
imageView.setImageResource(strImage);
random.nextInt(4)生成的随机数是0,1,2,3,