title: MIPS 32bit random integer
body: <p>I am trying to get MIPS to generate 32bit random integers. I'm trying to use the following code but it gives an error when I run the program.</p>
  
  <pre><code>addi $v0, $zero, 42
  li $a1, 4294967295 #32 bit number
  syscall
  </code></pre>
  
  <p>I'm using MARS simulator. The program assembles without any errors. Problem occurs when the syscall above is executed. I'd be really grateful for any help.</p>