I am making an online quiz app in which their are 4 options in which random users plays the quiz at the same time... I want that the 4 options , option1 , option , option 3, option 4 should come randomly. Like one user should get Option4 first than option1 , O3, O2.... Other user shall get say 4,3,1,2 ,... similarly other can get 3142 .
I know that ,
Random random=new Random(); final int rand=random.nextInt(4);
will generate any random number under 4. But where should i put this to get the desired result.
Aucun commentaire:
Enregistrer un commentaire