Feeds
已回答
pseudo random numbers using the linear congruent method
a = 37; c = 91; m = 10000; x = zeros(1,10000); x(1) = 7; for i=2:numel(x) x(i) = mod(a*x(i-1)+c,m); end X = x(1:end-...
pseudo random numbers using the linear congruent method
a = 37; c = 91; m = 10000; x = zeros(1,10000); x(1) = 7; for i=2:numel(x) x(i) = mod(a*x(i-1)+c,m); end X = x(1:end-...
3 years 前 | 0
