Thank you for quick reply.
Well in fact i have already done some Google search. but my program understanding skill is not that good.
1)It is possible to make generate random number(RAND) but each and every time the value changes and the values are decimal numbers. I need something that i can repeat. like for 10 or 20 points the random number will always be the same and at the same time it will try to fill the whole region also.
2) Right now i am using this code but the problem is that it gives decimal values.
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
SUBROUTINE LHD(VRBL,N,FI_FRS)
!!!!VRBL=NUMBER OF VARIABLES..SAY 2 VARIABLE...
!!!!N= NUMBER OF RUN...SAY 10 RUN.....
!!!FOR THE ABOVE CONDITION THIS SUBROUTINE PRODUCE FOLLOWING VALUES
!!! 2.8117118E-02 2.8602943E-02
!!! 0.9628103 0.8176457
!!! 0.7940205 0.6383985
!!! 7.8667834E-02 0.9008917
!!! 0.5960708 0.6908193
!!! 0.9782130 0.9781191
!!! 5.6456625E-02 3.9342672E-02
!!! 0.3176425 0.2716489
!!! 3.4892291E-02 0.7664266
!!! 8.8317253E-02 0.6975412
IMPLICIT NONE
INTEGER::I,J,vrbl,N
REAL*4::RS1(vrbl,N),RS2(vrbl,N),SS1(vrbl,N+1),SS2(vrbl,N+1),FRS1(vrbl,N)
REAL*4::FRS2(vrbl,N),D_FRS(vrbl,N),FI_FRS(vrbl,N)
DOUBLE PRECISION::MU1(vrbl,N),MU2(vrbl,N),A1(vrbl),A2(vrbl),M1(vrbl),M2(vrbl),S1(vrbl),S2(vrbl)
OPEN( 59, FILE='59.txt')
print*,'1'
do i=1,vrbl
A1(i)=45614+699*i;
A2(i)=50692+599*i;
M1(i)=2147483563+5000*I;
M2(i)=2147483399+2500*I;
S1(i)=1362+13*i;
S2(i)=3567+29*i;
SS1(i,1)=S1(i)
SS2(i,1)=S2(i)
END DO
DO j=1,vrbl
DO I=1,N
MU1(j,I)=A1(j)*SS1(j,I)
MU2(j,I)=A2(j)*SS2(j,I)
RS1(j,I)=MOD(MU1(j,I),M1(j))
RS2(j,I)=MOD(MU2(j,I),M2(j))
FRS1(j,I)=RS1(j,I)/M1(j)
FRS2(j,I)=RS2(j,I)/M2(j)
D_FRS(j,I)=(FRS1(j,I)-FRS2(j,I))
IF (D_FRS(j,I).GT.0.0d0) THEN
FI_FRS(j,I)=(D_FRS(j,I)/2)
ELSE IF (D_FRS(j,I).LT.0.0d0)THEN
FI_FRS(j,I)=((D_FRS(j,I)/2)+1)
ELSE IF (D_FRS(j,I).EQ.0.0d0)THEN
FI_FRS(j,I)=1.0
END IF
SS1(j,I+1)=RS1(j,I)
SS2(j,I+1)=RS2(j,I)
END DO
END DO
print*,'2'
DO I=1,N
WRITE(59,*)FI_FRS(1,I),FI_FRS(2,I)
END DO
write(*,*) FI_FRS
END SUBROUTINE
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Thanks,
Niloy