I have looked in many places on the internet for solutions to my problem. I need to have a random number generator in MIPS Assembly that can generate numbers with either a given range, or from an array. I have found one generator at fivemouse.com, and it takes in a seed to produce the numbers. However, I could not figure out how to get the correct range out of that generator. If I wanted the numbers 1-10 to be randomly generated, how would I code this?
Also, if anyone has any better suggestions on how to get random numbers, please, do tell .
Also, if anyone has any better suggestions on how to get random numbers, please, do tell .