mikibelavista
Technical User
- Jan 18, 2012
- 32
I am translating some code form matlab to fortran90,I need to generate random numbers for matrix.
This is how MATLAB code looks like,and gives me the same values all the time.
rand('state',0)
v = 2*(ones(c,1)*aa).*(rand(c,n)-0.5) + ones(c,1)*mm;
Is there any idea how to solve this in FORTRAN?
This is how MATLAB code looks like,and gives me the same values all the time.
rand('state',0)
v = 2*(ones(c,1)*aa).*(rand(c,n)-0.5) + ones(c,1)*mm;
Is there any idea how to solve this in FORTRAN?