https://jp.mathworks.com/help/matlab/ref/randstream.setglobalstream.html
RandStream.setGlobalStream - Set global random number stream - MATLAB
This MATLAB function designates the random number stream, specified as stream, to be the global stream that the rand, randi, and randn functions draw values...
random numbersetglobalstreammatlab