<< NARVAL_F_Unity NARVAL NARVAL_G_AddEdges >>

NARVAL >> NARVAL > NARVAL_F_XYRand

NARVAL_F_XYRand

Generate a vector of random values inferior to a threshold.

Calling Sequence

[x] = NARVAL_F_XYRand(n,l)

Parameters

n :

vector size.

l :

maximal value.

x :

vector of random values.

Description

NARVAL_F_XYRand generates the vector x of n random values between 0 and l. It can be used to generate the coordinates of network nodes.

Examples

l=1000;//maximal value
n=10;//vector size
[x]=NARVAL_F_XYRand(n,l);//application of NARVAL_F_XYRand
x

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_F_Unity NARVAL NARVAL_G_AddEdges >>