9. (A) Program to generate random variables.

9. (A) Program to generate random variables.

a=3;
x=27;
c=2;
m=10;
for i=0:m
xi=modulo((a*x+c),m)
printf("%f,",xi/m)
x=xi
end
9. (A) Program to generate random variables. 9. (A) Program to generate random variables. Reviewed by admin on December 24, 2019 Rating: 5

No comments:

Powered by Blogger.