MATLAB: Is it possible to get the actual random seed getrandrandomrngseed Is it possible to get the number x, for which rng(x) has no effect on random generation? Best Answer s = rng;will retrieve and store the current state of the random number generator, according to this documentation page.Then,rng(s)will restore it to that state. Related SolutionsMATLAB: What algorithm is matlab using to create randn numbers https://www.mathworks.com/matlabcentral/answers/97811-what-is-the-algorithm-used-by-the-normally-distributed-pseudorandom-number-generator-randn-in-matlab MATLAB: Pn sequence generation using independent seed s = rng; % rng seeds the random number generatorseq1 = rand(1,5);rng(s);seq2=rnd(1,5); Related QuestionWhat does randn(‘seed’,319) mean in the programRand(‘seed’,1)Random seed has to be an integerSeed choise in rng.
Best Answer