<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Hi,<br>
<br>
see section<b> "Creating random variables"</b> at the link I
posted before:
<a class="moz-txt-link-freetext" href="https://www.nsnam.org/docs/manual/html/random-variables.html#seeding-and-independent-replications">https://www.nsnam.org/docs/manual/html/random-variables.html#seeding-and-independent-replications</a><br>
<br>
Greetings,<br>
Daniel<br>
<br>
<br>
Am 08.10.2015 um 14:59 schrieb Dhiab Imen:<br>
</div>
<blockquote
cite="mid:CAM3J8PpNF9pKZYUja7nAzBcPp6TOjvG+8Krd3RJURxeEA-t4Bg@mail.gmail.com"
type="cite">
<div dir="ltr">Hello ,
<div><br>
</div>
<div>when I add <span
style="color:rgb(255,0,0);font-size:12.8000001907349px">srand(
time(NULL) ); </span>at the begining of my code it works
and it give me at every simulation a different value of the
variable a .</div>
<div><br>
</div>
<div>But Daniel you see that it is very bad idea can you tell me
how can I use <span
style="color:rgb(0,0,0);font-size:12px;line-height:14.3999996185303px">UniformRandomVariable
or </span><span
style="color:rgb(0,0,0);font-size:12px;line-height:14.3999996185303px">ExponentialRandomVariable
in order to get un integer between 0 and 4?? </span></div>
<div><span
style="color:rgb(0,0,0);font-size:12px;line-height:14.3999996185303px"><br>
</span></div>
<div><span
style="color:rgb(0,0,0);font-size:12px;line-height:14.3999996185303px">thnx
a lot for help </span></div>
<div><font color="#ff0000"><span
style="font-size:12.8000001907349px"><br>
</span></font>
<div><br>
</div>
-- <br>
<div class="gmail_signature">
<div dir="ltr">
<div><span style="color:rgb(0,0,0)">Cordialement </span></div>
<div><span style="color:rgb(0,0,0)">Imen Dhiab</span></div>
<div><span style="color:rgb(0,0,0)"><br>
</span></div>
<div><span style="color:rgb(0,0,0)">***************************************************************************************************</span><br>
</div>
<div><font color="#000000">Ingénieur
Informatique diplômé de l'Ecole Nationale d'Ingénieurs
de Sfax.</font></div>
<div><font color="#000000">Membre de l'unité de recherche
SAGE (Systèmes Avancés en Génie Electrique), Ecole
Nationale d'Ing</font><span style="color:rgb(0,0,0)">énieurs
de Sousse.</span></div>
<div><font color="#000000">+216 53 59 19 88</font></div>
<div><font color="#000000">Pages personnelles : <a
moz-do-not-send="true"
href="http://www.sage-eniso.org/profile-membre/fr/T/85/dhiab-imene.html"
target="_blank"><a class="moz-txt-link-freetext" href="http://www.sage-eniso.org/profile-membre/fr/T/85/dhiab-imene.html">http://www.sage-eniso.org/profile-membre/fr/T/85/dhiab-imene.html</a></a></font></div>
<div>***************************************************************************************************</div>
</div>
</div>
</div>
</div>
</blockquote>
<br>
<br /><br />
<hr style='border:none; color:#909090; background-color:#B0B0B0; height: 1px; width: 99%;' />
<table style='border-collapse:collapse;border:none;'>
<tr>
<td style='border:none;padding:0px 15px 0px 8px'>
<a href="https://www.avast.com/antivirus">
<img border=0 src="http://static.avast.com/emails/avast-mail-stamp.png" alt="Avast logo" />
</a>
</td>
<td>
<p style='color:#3d4d5a; font-family:"Calibri","Verdana","Arial","Helvetica"; font-size:12pt;'>
Diese E-Mail wurde von Avast Antivirus-Software auf Viren geprüft.
<br><a href="https://www.avast.com/antivirus">www.avast.com</a>
</p>
</td>
</tr>
</table>
<br />
</body>
</html>