title: How to check if the random number is between two numbers in CMD?
body: <p>Hi I am new with Batch programing and i want to know how you check if the random nubmer is between two numbers!</p>
  
  <pre><code>@echo off
  
  set /a num = %random%
  if %num% == 0-8191 goto o1
  if %num% == 8191-16382 goto o2
  if %num% == 16382-24573 goto o3
  if %num% == 24573-32764 goto o4
  
  :o1
  msg * 1
  goto end
  
  :o2
  msg * 2
  goto end
  
  :o3
  msg * 3
  goto end
  
  :o4
  msg * 4
  goto end
  
  
  :end
  pause
  </code></pre>
  
  <p>I don't know what I did wrong and please if you have a better version feel free to show it :D </p>
  
  <p>Thanks</p>