showing numbers on textview
<p>What i m trying to do is, just showing numbers from 1 to 100 in a textview, randomly, and keep on changing until the view is active.</p>

<p>But i am not able to continuously change random number when view is active.</p>

<p>it is just like a timer  showing decrement from 10 to 0, but the only difference is i need to show random numbers in between 0 to 100.</p>

<p>How can show this on my view
this is how i am trying to do something..may be a better approch will help me out</p>

<pre><code>if (hasFocus) {
   try {  
      //Give the currentTimeMillis some time for the seed  
      Thread.sleep(2);  
   } catch (InterruptedException ex) {  
      ex.printStackTrace();  
   }  
   Random randomizer = new Random(System.currentTimeMillis());  
   // abcdef  = randomizer.nextInt(max-min+1)+min;
   return randomizer.nextInt(max-min+1)+min;  
} else { }
</code></pre>
