Q:

Get into a new Command Window, and type rand to get a random real number. Make a note of the number

0

 Get into a new Command Window, and type rand to get a random real number. Make a note of the number. Then, exit MATLAB and repeat this, again making a note of the random number; it should be the same as before. Finally, exit MATLAB and again get into a new Command Window. This time, change the seed before generating a random number; it should be different.

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

>> rand ans = 0.8147 >> rng('shuffle') >> rand ans = 0.4808 

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now