<< NARVAL_F_RandomNiNj NARVAL NARVAL_F_Random_i >>

NARVAL >> NARVAL > NARVAL_F_RandomVec

NARVAL_F_RandomVec

Generate a vector of integer values between 0 and a defined threshold.

Calling Sequence

[v] = NARVAL_F_RandomVec(l,n)

Parameters

n :

maximum value.

l :

vector size.

v :

vector of integers.

Description

NARVAL_F_RandomVec generates the vector v of integer values between 0 and the given threshold n-1 ([0 ... n-1]).

Examples

n=3;//maximum value
//range [0 1 2]
l=10;//vector size
[v]=NARVAL_F_RandomVec(l,n);//application of NARVAL_F_RandomVec
v

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_RandomNiNj NARVAL NARVAL_F_Random_i >>