<< NL_F_RandIntNiNj NL_F: Function NL_F_RandVector0nminus1 >>

NARVAL >> NL_F: Function > NL_F_RandIntNiNjNf

NL_F_RandIntNiNjNf

Generate two distinct random integer values between (Nf+1) and (Nf+N).

Calling Sequence

[Ni,Nj] = NL_F_RandIntNiNjNf(N,Nf)

Arguments

N :

Quantity of moving nodes.

Nf :

Quantity of fixed nodes.

Ni :

Emission node index.

Nj :

Destination node index.

Description

NL_F_RandIntNiNjNf generates the two distinct random integer values and between and . These values are used to define a connection between two mobile nodes (see mobility models).

Examples

n=50;
nf=5;
[ndep,nfin]=NL_F_RandIntNiNjNf(n,nf)//application of NL_F_RandIntNiNjNf

Dependency

NL_F_RandInt1n

Report an issue
<< NL_F_RandIntNiNj NL_F: Function NL_F_RandVector0nminus1 >>