Question: Test your random number generator. Draw a flowchart and write a C function that will test your random number generator. Compare it against rand() function
Ask an expert
Draw a flowchart for a pseudo-random number generator, then write its C function. The generated random number should be between [1, 15]. It should be a pure C function without any external function calls. (i.e rand()) Explain your method. You should have main.c, myrand.c and myrand.h files. myrand.c should have your random number generator function definition. myrand.h should have a function declaration. main.c should include your myrand function and call it.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
