<< NARVAL_D_RecDijkstraNS NARVAL NARVAL_F_AleaNombre >>

NARVAL >> NARVAL > NARVAL_F_AleaInitFin

NARVAL_F_AleaInitFin

Generate a random integer value between 1 and a defined threshold (different from a defined value).

Calling Sequence

[nf] = NARVAL_F_AleaInitFin(n,nd)

Parameters

n :

maximal value.

nd :

starting value.

nf :

ending value.

Description

NARVAL_F_AleaInitFin generates a random integer value nf between 1 and n. nf is different from nd.

Examples

n=10;//limit
nd=3;//starting node
[nf]=NARVAL_F_AleaInitFin(n,nd);//application of NARVAL_F_AleaInitFin
n
nd
nf

Dependency

NARVAL_F_AleaNombre

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_D_RecDijkstraNS NARVAL NARVAL_F_AleaNombre >>