<div id="__MailbirdStyleContent" style="font-size: 10pt;font-family: Arial;color: #000000;text-align: left" dir="ltr">
                                        Hi Stéphane, hi Louis --<div><br></div><div>... and we constantly have to remind our students about the difference between</div><div><br></div><div>(self player energy > 50) and: (self highscore > 5000)</div><div><br></div><div>and</div><div><br></div><div>(self player energy > 50) and: [self highscore > 5000]<br></div><div><br></div><div>And in this case, I think that #value is at the wrong place. :-)</div><div><br></div><div>Best,</div><div>Marcel</div><div class="mb_sig"></div>
                                        <blockquote class="history_container" type="cite" style="border-left-style: solid;border-width: 1px;margin-top: 20px;margin-left: 0px;padding-left: 10px;min-width: 500px">
                        <p style="color: #AAAAAA; margin-top: 10px;">Am 04.04.2022 16:28:37 schrieb Louis LaBrunda <lou@keystone-software.com>:</p><div style="font-family:Arial,Helvetica,sans-serif">Hi Stéphane,<br><br>Please don't take this the wrong way, I'm just trying to nudge you in the right direction.  Try looking at the<br>size/contents of #s after "10 timesRepeat: [s add: b]".<br><br>Lou<br><br>On Mon, 4 Apr 2022 16:19:59 +0200, Stéphane Rollandin <lecteur@zogotounga.net> wrote:<br><br>>Hello all,<br>><br>>I just spent an hour or so chasing a strange glitch in my game, which <br>>makes a massive usage of Random, and the culprit is as follow:<br>><br>><br>>1) This, as expected, yields a Set of 10 different numbers:<br>><br>>   | b s |<br>><br>>     b := [Random new].<br>>        s := Set new.<br>>     10 timesRepeat: [s add: b value next].<br>>    s<br>><br>><br>>2) This yields a Set of one single number:<br>><br>>       | b s |<br>><br>>     b := [Random new].<br>>        s := Set new.<br>>     10 timesRepeat: [s add: b].<br>>       s collect: [:d | d value next]  <br>><br>><br>>Unless I am missing something, this looks like a pretty serious bug.<br>><br>>Tested in the latest trunk image, on win 64.<br>><br>>Stef<br>><br>-- <br>Louis LaBrunda<br>Keystone Software Corp.<br>SkypeMe callto://PhotonDemon<br><br><br></lecteur@zogotounga.net></div></blockquote></div>