<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<div class="moz-cite-prefix">Le 29/08/2022 à 20:46, Jens Simon Strom
a écrit :<br>
</div>
<blockquote type="cite"
cite="mid:153a3200-8ff8-01a2-7a06-5b81b516d2c5@hslmg.de">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
Hallo,<br>
to get a random number from an uniform distribution of e.g. 1, 5
and 9 I can use<br>
<font face="Courier New, Courier, monospace"><br>
</font>
<pre style="font-family:Arial;font-style:normal;font-size:18.0;"><font face="Courier New, Courier, monospace">x=grand(1,1, "uin", 1, 3);
if x==2;
x=5;
elseif x==3
x=9;
end
x</font><span style="color:rgb(160,32,240);">
<font color="#000000">I there a more straightforward way?</font></span></pre>
</blockquote>
<p><br>
</p>
<p>sample(1, [1 5 9])</p>
<br>
</body>
</html>