title: MIPS assembly - random integer range
body: <p>Hello im trying to use random integer range and the values that i get is out ouf the ones that i set.</p>
  
  <p>for example:</p>
  
  <pre><code>sw $a0, 0($s0)  
  li $a0, 1000
  li $a1, 3500
  li $v0, 42   #random
  </code></pre>
  
  <p>So i just want it to be random numbers between 1000-3500 but it gives me any random number.</p>
  
  <p>Can you please help me to understand where my mistake is.</p>