[ndnSIM] Random Producer/consumer

Daniel Posch poschdaniel2 at gmail.com
Thu Oct 8 22:31:11 PDT 2015


Hi,

see section*"Creating random variables"* at the link I posted before: 
https://www.nsnam.org/docs/manual/html/random-variables.html#seeding-and-independent-replications

Greetings,
Daniel


Am 08.10.2015 um 14:59 schrieb Dhiab Imen:
> 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
> ***************************************************************************************************



---
Diese E-Mail wurde von Avast Antivirus-Software auf Viren geprüft.
https://www.avast.com/antivirus
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20151009/c83bc6eb/attachment.html>


More information about the ndnSIM mailing list