title: Generate random numbers between two numbers
body: <pre><code>public class TestSample {
      public static void main(String[] args) { 
  
          int a = Integer.parseInt(args[0]);
          int b = Integer.parseInt(args[1]);
  
          double ran = Math.random();
  
  
  
      }
  }
  </code></pre>
  
  <p>I don't want to use <code>Random r = new Random();</code> class. Is there any other way to generate random numbers. I am just struck with what logic could be applied to generate random numbers between two numbers. </p>