search for: ekzekutohet

Displaying 1 result from an estimated 1 matches for "ekzekutohet".

2011 May 30
0
2D random walk with traps convert C++ code to R code
...MX (1.0-EPS) using namespace std;float rand1(long *idum); int main(){ long run=10000,adr=-run,x,y,hapa=0,i=0; int dimx=700,dimy=700,nrg=50, M[dimx][dimy]; double rnd,sum=0; long k[run+1],frekuenca; bool njehsuar[run+1], next; ofstream Txt("EndjeMePengesa2D.txt"); printf("\nProgrami ekzekutohet:\ni=1 ne %d",run); for (i=1;i<=run;i++){ njehsuar[i]=true; k[i]=0; } while (i<nrg){ x=dimx*rand(&adr);y=dimy*rand(&adr); if (M[x][y]!=1){ M[x][y]=1;i++ } }for (i=1;i<=run;i++){x=dimx*rand1(&adr); y=dimy*rand1(&adr); hapa=0; next=false; if (M[x][y]!=1){while (!next){...