Hey, Lars!<div><br></div><div>I'm not Stephan, but I'm still a bit confused as well so I thought I'd answer anyway.</div><div><br><div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div style="word-wrap:break-word"><div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;color:rgb(96, 144, 16)"><span style="color:#000000">Std.srand(</span><span style="color:#d48010">1200</span><span style="color:#000000">); </span>//set your seed</div>
</div></div></div></blockquote><div><br></div><div>Looks fine</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div style="word-wrap:break-word"><div>
<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;color:rgb(64, 64, 64)"><span style="color:#000000">    <<<</span>"--------------"<span style="color:#000000">,</span> "we always get the same numbers" <span style="color:#000000">>>>;</span></div>
</div></div></div></blockquote><div><br></div><div>That's what we'd expect, yes. </div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div style="word-wrap:break-word">
<div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">Hope this helps!</div><p style="margin-top:0px;margin-right:0px;margin-bottom:12px;margin-left:0px">
</p></div></div></div></blockquote><div> Well.... no, not really.</div><div><br></div><div>What happens if you don't set the seed with srand(), do you still get the same numbers? As I understand things now you should get exactly what you are looking for by simply not setting the seed in line 1. Could you verify that by not setting the seed at all you get different numbers each time you run your program? If not we have a bug. I seem to remember there was a issue like that on Windows, which might be caused by Windows (last time I looked) not having the "storage" of OS-event based random numbers that Unix typically uses; that might be the cause. That's no excuse though; as we are not trying to secure nuclear missiles (I hope!) something like the time in ms should yield a perfectly serviceable seed at VM startup.</div>
<div><br></div><div>Yours,</div><div>Kas.</div></div></div></div>