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.
addi $v0, $zero, 42
li $a1, 4294967295 #32 bit number
syscall
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.