<< NARVAL_F_AleaInitFin NARVAL NARVAL_F_AleaVec >>

NARVAL >> NARVAL > NARVAL_F_AleaNombre

NARVAL_F_AleaNombre

Generate a random integer value between 1 and a defined threshold.

Calling Sequence

[nb]=AleaNombre(n)

Parameters

n :

maximal value.

nb :

random integer value.

Description

NARVAL_F_AleaNombre generates a random integer value nb between 1 and n.

Examples

n=10;//limit
[nb]=NARVAL_F_AleaNombre(n);//Application of AleaNombre
[n;nb]

Author

http://wwwen.uni.lu/interdisciplinary_centre_for_security_reliability_and_trust

Contact

<< NARVAL_F_AleaInitFin NARVAL NARVAL_F_AleaVec >>