Question: Create a pseudorandom number generator using arithmetic and bitwise logical instructions. a . Write a RISC - V program that will use a loop to

Create a pseudorandom number generator using
arithmetic and bitwise logical instructions.
a. Write a RISC-V program that will use a loop to generate 15 random numbers and store them in an array beginning at memory location 0 in data memory.
i. Hand in your code for this program as well as a list of the 15 numbers you
generated.
b. Given the first random number, write a RISC-V program to determine how many
numbers must be generated in order to revisit the first number.
i. Hand in your code for this program
ii. Hand in the first random number and the number of steps it takes to revisit that
first number.
c. Create and hand in a report that explains your algorithm for your random number
generator and includes the components mentioned in parts a and b.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!