None.
Open in the MATLAB editor: g05kg_example
function g05kg_example fprintf('g05kg example results\n\n'); % genid and subid identify the base generator genid = int64(1); subid = int64(1); % Initialize the generator to an unrepeatable sequence [state, ifail] = g05kg(genid, subid); % The number of pseudorandom numbers to be generated n = int64(5); % Generate the variates [state, x, ifail] = g05sa( ... n, state); % Display variates disp(x);
g05kg example results 0.3331 0.5686 0.7844 0.5503 0.1498