<< NARVAL_F_RandomVec NARVAL NARVAL_F_Random_i_j >>

NARVAL >> NARVAL > NARVAL_F_Random_i

NARVAL_F_Random_i

Generate couples of two distinct integer values bounded by a threshold.

Calling Sequence

[w] = NARVAL_F_Random_i(v,n)

Parameters

v :

vector of integers.

n :

maximum value.

w :

vector of integers.

Description

NARVAL_F_Random_i generates the vector of integers w that are different for each index from the integers of the vector v. The generated values are bounded by the threshold n.

Examples

n=10;//maximum value
v=1:10;//initialization of v1
//v=[1 2 3 4 5 6 7 8 9 10]
[w]=NARVAL_F_Random_i(v,n);//application of NARVAL_F_Random_i
//w=[w1 w2 w3 w4 w5 w6 w7 w8 w9 w10]
//w1<>v1
//w2<>v2
//w3<>v3
//w4<>v4
//w5<>v5
//w6<>v6
//w7<>v7
//w8<>v8
//w9<>v9
//w10<>v10
v
w

Dependency

NARVAL_F_RandomVec

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_RandomVec NARVAL NARVAL_F_Random_i_j >>