R=input('the file name\n','s'); N=input('the desired number of uniformly distributed numbers on [0,1]='); y=rand(N,1); fid=fopen(R,'w'); fprintf(fid,'%f\n',y);