title: How to generate a random number between 1 and 100 using batch
body: <p>%random% seems to go in order. </p>
  
  <pre><code>@ECHO OFF
  SET /A RAND=%RANDOM% %%100
  ECHO %RAND%
  ECHO.
  </code></pre>
  
  <p>If you keep running this it increments until it reaches 100 and then the number start over. If it were random it would jump around.</p>
  
  <pre><code>@ECHO OFF
  SET /A RAND=%RANDOM%
  ECHO %RAND%
  ECHO.
  </code></pre>