%% Initialize Generator Seed
% Create a random number stream using a generator seed based on the current time. It is usually not desirable to do this more than once per MATLAB® session as it may affect the statistical properties of the random numbers MATLAB produces.

s = RandStream('mt19937ar','Seed','shuffle');

% Use the stream to create a 3-by-3 matrix of random values with uniform distribution between 0 and 1.

X1 = rand(s,3)

% Create another five random numbers from the stream.

X2 = rand(s,1,5)

%
% Copyright 2020 The MathWorks, Inc.