Hi,<br>This appears to occur in numarray (1.3.3) but not Numeric
(24.0b2). If you provide the shape of the array then this does not
occur.<br>
<br>
Also, please note that your other email illustrates the well known problem of
using computer clock as a seed - the computer clock does not change sufficiently fast enough so the seed remains the same.<br>
<br>
Regards<br>
Bruce<br>
<br>
<br><br><div><span class="gmail_quote">On 11/10/05, <b class="gmail_sendername">Sune Rastad Bahn</b> <<a href="mailto:bahn@atomistix.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">bahn@atomistix.com
</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Dear devs,<br><br>Thanks a lot for a very nice and extremely useful python module.
<br>I recommend all my colleagues to try you package whenever they ask for a<br>matlab like environment. This week one of these friends came by me and showed<br>me a bug in RandomArray.<br><br>try the following<br><br>python -c "from RandomArray import *;
<br>seed(1874764637, 1152239787);print randint(0,1000)"<br><br>and notice how the result is the upper limit (1000)<br>even though the documentation clearly states that the number should be<br>strictly below 1000.<br>

<br>My guess is that this is an issue with the underlying ranlib library, but<br>perhaps someone can clarify?<br><br>best,<br>Sune<br><br>--<br>Software Application Manager<br>Sune Rastad Bahn<br>Phone:  +45 35 320 638<br>

Mobile: +45 23 455 997<br>Email: <a href="mailto:bahn@atomistix.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">bahn@atomistix.com</a><br><br><br>-------------------------------------------------------
<br>SF.Net email is sponsored by:<br>Tame your development challenges with Apache's Geronimo App Server. Download
<br>it for free - -and be entered to win a 42" plasma tv or your very own<br>Sony(tm)PSP.  Click here to play: <a href="http://sourceforge.net/geronimo.php" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://sourceforge.net/geronimo.php</a><br>_______________________________________________
<br>Numpy-discussion mailing list<br><a href="mailto:Numpy-discussion@lists.sourceforge.net" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">Numpy-discussion@lists.sourceforge.net</a><br><a href="https://lists.sourceforge.net/lists/listinfo/numpy-discussion" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
https://lists.sourceforge.net/lists/listinfo/numpy-discussion
</a><br></blockquote></div><br>