<< NARVAL_M_NodeRWPoint NARVAL NARVAL_M_XYExtraction >>

NARVAL >> NARVAL > NARVAL_M_Random_i_j_nf

NARVAL_M_Random_i_j_nf

Generate two distinct random integer values between (nf+1) and (nf+n).

Calling Sequence

[ni,nj] = NARVAL_M_Random_i_j_nf(n,nf)

Parameters

n :

quantity of moving nodes.

nf :

quantity of fixed nodes.

ni :

emission node.

nj :

destination node.

Description

NARVAL_M_Random_i_j_nf generates the two distinct random integer values ni and nj between (nf+1) and (nf+n). These values are used to define a connection between two mobile nodes.

Examples

n=50;//quantity of moving nodes
nf=5;//quantity of fixed nodes
[ndep,nfin]=NARVAL_M_Random_i_j_nf(n,nf);//application of MobilityRandom_i_j_nf
ndep
nfin

Dependency

NARVAL_F_Random

Authors

Foued Melakessou

Contact

Dr. Foued Melakessou

Research Associate

Interdisciplinary Centre for Security, Reliability and Trust

Room F106

University of Luxembourg

6, rue Coudenhove Kalergi

L-1359 Luxembourg-Kirchberg

E-mail: foued.melakessou@uni.lu

Tel: (+352) 46 66 44 5346

Home Page


<< NARVAL_M_NodeRWPoint NARVAL NARVAL_M_XYExtraction >>