[ndnSIM] Random Producer/consumer

Dhiab Imen dhiabimen at gmail.com
Thu Oct 8 05:59:40 PDT 2015


Hello ,

when I add   srand( time(NULL) );  at the begining of my code it works and
it give me at every simulation a different value of the variable a .

But Daniel you see that it is very bad idea can you tell me how can I
use UniformRandomVariable
or ExponentialRandomVariable  in order to get un integer between 0 and 4??

thnx a lot for help


-- 
Cordialement
Imen Dhiab

***************************************************************************************************
Ingénieur Informatique diplômé de l'Ecole Nationale d'Ingénieurs de Sfax.
Membre de l'unité de recherche SAGE (Systèmes Avancés en Génie Electrique),
Ecole Nationale d'Ingénieurs de Sousse.
+216 53 59 19 88
Pages personnelles :
http://www.sage-eniso.org/profile-membre/fr/T/85/dhiab-imene.html
***************************************************************************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20151008/8e4613c6/attachment.html>


More information about the ndnSIM mailing list