Re: divide by zero erro

2000-06-07 Thread Nelson Zink
Rick, >Avoids the repeat loop and potential problems there. For one-stop shopping for random numbers: put random(gUpper-gLower) + gLower into MCH Nelson Archives: http://www.mail-archive.com/metacard%40lists.best.com/ Info: http://www.xworlds.com/metacard/mailinglist.htm Please send bug report

Re: divide by zero erro

2000-06-07 Thread Mark Talluto
Hi Rick. Sounds like you are using an older version of MC tools stack. Just update to the current one 2.3 or 2.3.1 b2 and that problem will go away. -Mark Talluto KIDware Technologies www.kidwaretech.com > From: [EMAIL PROTECTED] > Reply-To: [EMAIL PROTECTED] > Date: Tue, 6 Jun 2000 23:11:00 -

Re: divide by zero erro

2000-06-06 Thread rice
Sorry, meant to post that last message to Steven. As an aside, can anyone explain why on windows when I get a divide by zero error when I open the script editor the involved line is not in fact displayed. The cursor is flashing at whatever line I last edited. The message says the error is

Re: divide by zero erro

2000-06-06 Thread rice
Steven: Thanks for the suggestion. You were correct. The divide by zero error was not in the random number generation but was in fact in a later handler where in fact division does occur. I must say that I like your random generator much better than mine. Avoids the repeat loop and

re: divide by zero erro

2000-06-06 Thread Nelson Zink
Rick, >When I run it on >the Windows platform I preiodically get a divide by zero error Try the following: on generateMCH global MCH, glower, gupper if gUpper>1 and gLower>0 and gUpper>gLower then put empty into MCH repeat until MCH >glower put random(gupper) into MCH

Re: divide by zero erro

2000-06-05 Thread Steven D'Aprano
EdTech wrote: > I have the following script to generate a random number between upper > and lower limits. [snip] > on generateMCH > global MCH, glower, gupper > put empty into MCH > repeat until MCH >glower > put random(gupper) into MCH -- this is the line that >

divide by zero erro

2000-06-05 Thread EdTech
I have the following script to generate a random number between upper and lower limits. It works without a hitch on the Mac. When I run it on the Windows platform I preiodically get a divide by zero error at line 810 column 20. When I open the script the cursor is flashing in front of the very fir