None.
Open in the MATLAB editor: g05tb_example
function g05tb_example fprintf('g05tb example results\n\n'); % Initialize the base generator to a repeatable sequence seed = [int64(1762543)]; genid = int64(1); subid = int64(1); [state, ifail] = g05kf( ... genid, subid, seed); % Number of variates n = int64(20); % Parameters p = 0.5; % Generate variates from a logical distribution [state, x, ifail] = g05tb( ... n, p, state); disp('Variates'); for i = 1:n if x(i) fprintf(' true\n'); else fprintf(' false\n'); end end
g05tb example results Variates false true false false true true true false true false true true false true false true true false false false