Why does the following expression got "illegal guard expression" when compiling:<div>X = 0.5,</div><div>if</div><div> random:uniform() < X -> %error reported for this line</div><div> good;</div>
<div> true -></div><div> bad</div><div>end.</div><div><br></div><div>But if I change it to following expression, it's ok:</div><div><div>X = 0.5,</div><div>Ran = random:uniform(),</div><div>if</div><div>
Ran < X -> </div><div> good;</div><div> true -></div><div> bad</div><div>end.</div></div><div><br></div><div>BRs,</div><div>Barco</div>