<br><font size=2 face="sans-serif">Shari,</font>
<br>
<br><font size=2 face="sans-serif">Consider that the function random(x)-1 = right result for any x < (2^64)-1 (the integer limit of MC - I didn't test this limit lately though)...</font>
<br>
<br><font size=2 face="sans-serif">Naturally if you assume 0 to be a number and/or part of your answer. Remember those problems with 0-255 = 256 values?</font>
<br>
<br><font size=2 face="sans-serif">The proof I wrote the day this thread was first posted but I didn't post it since you probably already think im such a nuts... </font>
<br>
<br><font size=2 face="sans-serif">cheers</font>
<br><font size=2 face="sans-serif">Xavier</font>
<br>
<br>
<br>
<br><font size=2 face="sans-serif">---------------------=---------------------<br>
Xavier Bury<br>
TNS NT LAN Server<br>
ext 6465</font>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td>
<td><font size=1 face="sans-serif"><b>Shari <gypsyware@earthlink.net></b></font>
<br><font size=1 face="sans-serif">Sent by: metacard-admin@lists.runrev.com</font>
<p><font size=1 face="sans-serif">13/05/03 14:18</font>
<br><font size=1 face="sans-serif">Please respond to metacard</font>
<br>
<td><font size=1 face="Arial"> </font>
<br><font size=1 face="sans-serif"> To: metacard@lists.runrev.com</font>
<br><font size=1 face="sans-serif"> cc: </font><font size=1 face="Arial">^</font>
<br><font size=1 face="sans-serif"> Subject: RE: Random of zero</font>
<td></table>
<br>
<br>
<br><font size=2 face="Courier New">>It is clear that you read the MetaTalk entry for random, and <br>
>likewise it is clear that you chose to try to use the function <br>
>outside of its clearly documented scope.<br>
<br>
The assumption that random(0) would obviously be 0 was made based on <br>
general principles. Not on Metatalk itself. I did not expect to <br>
have to look up what would seem to be a simple function.<br>
<br>
It was not until the handler failed, and I discovered that random(0) <br>
consistently produces 1, that I looked it up in the reference docs to <br>
see if there was an explanation, and some way to fix it to produce 0 <br>
as I intended it to.<br>
<br>
I do not know in general mathematical principles, what result one <br>
would get from random(0). But I would expect it to be 0. My mistake <br>
for assuming. (Unless of course, general math principles support my <br>
theory :-)<br>
<br>
Any math gurus out there know?<br>
<br>
:-)<br>
<br>
Shari C<br>
-- <br>
--Shareware Games for the Mac--<br>
http://www.gypsyware.com<br>
_______________________________________________<br>
metacard mailing list<br>
metacard@lists.runrev.com<br>
http://lists.runrev.com/mailman/listinfo/metacard<br>
</font>
<br>
<br><CODE><FONT SIZE=3><BR>
<BR>
Visit us at http://www.clearstream.com<BR>
<BR>
IMPORTANT MESSAGE<BR>
<BR>
Internet communications are not secure and therefore Clearstream International does not accept legal responsibility for the contents of this message.<BR>
<BR>
The information contained in this e-mail is confidential and may be legally privileged. It is intended solely for the addressee. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. Any views expressed in this e-mail are those of the individual sender, except where the sender specifically states them to be the views of Clearstream International or of any of its affiliates or subsidiaries.<BR>
<BR>
END OF DISCLAIMER<BR>
</FONT></CODE>