title: How to fill an array with random numbers from 0 to 99 using the class Math?
body: <p>I wrote the code, but there is no conversion from double to int.</p>
  
  <pre><code>public class Array {
      public static void main(String[] args) {
          int i;
          int[] ar1 = new int[100];
          for(int i = 0; i &lt;  ar1.length; i++) {
              ar1[i] = int(Math.random() * 100);
              System.out.print(ar1[i] + "  ");
          }
      }
  }
  </code></pre>
  
  <p>How can it be corrected?</p>