For this I have a TextView named mTextField3.
Random r = new Random();
int i1=r.nextInt(100);
mTextView3.setText(String.valueOf(i1));
This will generate a random number between 0 and 99.
No comments:
Post a Comment