title: Random number generator two digit
body: <pre><code>package com.nusecond.Code;
  import java.util.*;
  
  public class Code {
  
      public static void main(String args[]){
  
          Random random=new Random();
          for(int j=10;j&lt;=99;j++){        
             int num=random.nextInt(100) ;
             //ssLong i=System.currentTimeMillis();
             //String result = String.format("%04d", i % 10000);
             System.out.println("Code generated:"  +num);
          }
      }
  }
  </code></pre>
  
  <p>I want to print two digit random numbers between 10 and 99.</p>
  
  <p>Note : I want only one number every time I run the program.</p>