A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Replace =RAND() with =ABS(RAND())



 
 
Thread Tools Display Modes
  #21  
Old December 10th, 2003, 09:37 PM
James Silverton
external usenet poster
 
Posts: n/a
Default Replace =RAND() with =ABS(RAND())


"Bernard V Liengme" wrote in message
...
Has anyone experimented with RANDBETWEEN? With RAND() one needs to do many
many recals to get neg values. But RANDBETWEEN(0,5) gave me lots of

negative
values the first time I made a sheet with the formula repeated 500 times.


I presume and hope this refers to Excel 2003 since I am still using the
previous version even if the results of RAND() are not as well distributed
as they might be. There is no indication of trouble with RANDBETWEEN() in
that version.

I think Microsoft needs to take quick action like Intel did with the Pentium
bug many years ago. AFAIK, there were no reported financial losses due to
the Pentium bug but that might not be the case with RAND(). The ambulance
chasers and class actioners must be licking their lips!


--
James V. Silverton
Potomac, Maryland, USA

  #22  
Old December 10th, 2003, 10:40 PM
Harlan Grove
external usenet poster
 
Posts: n/a
Default Replace =RAND() with =ABS(RAND())

"James Silverton" wrote...
...
I think Microsoft needs to take quick action like Intel did with the Pentium
bug many years ago. AFAIK, there were no reported financial losses due to
the Pentium bug but that might not be the case with RAND(). The ambulance
chasers and class actioners must be licking their lips!


We can only hope.

--
Never attach files.
Snip unnecessary quoted text.
Never multipost (though crossposting is usually OK).
Don't change subject lines because it corrupts Google newsgroup archives.
  #23  
Old December 11th, 2003, 04:14 AM
David J. Braden
external usenet poster
 
Posts: n/a
Default Replace =RAND() with =ABS(RAND())

Hi Bernard,
I didn't spot the problem earlier, but I was waiting for MS to specify the
algorithm before doing more than perfunctory testing. It has been a long
wait g. To your question, the seed for Rand() is apparently set by the
clock. Were you to restart your experiment, you would get a different
result. I do, for su under Win XP, I can't yet replicate what you found,
though I don't doubt it. I'm still plugging away on a fast machine.

Regards,
Dave B

"Bernard V Liengme" wrote in message
...
Has anyone experimented with RANDBETWEEN? With RAND() one needs to do many
many recals to get neg values. But RANDBETWEEN(0,5) gave me lots of

negative
values the first time I made a sheet with the formula repeated 500 times.

Also noticed another oddity with RAND(). With a block 2000 by 12 of

=RAND()
formulas and a macro to repeatedly do recals, I found that when negative
values occur there are always 16.0 to 17.2% of them.

Bernard

"Patrick O'Beirne" wrote in message
om...
What a failure - imagine all the simulation models affected, never
mind the office lottery syndicates!

If anyone has stories of failures from this, the European Spreadsheet
Risks Interest Group would like to hear of them:

http://groups.yahoo.com/group/eusprig

www.eusprig.org

Patrick O'Beirne





  #24  
Old December 11th, 2003, 08:47 PM
James Silverton
external usenet poster
 
Posts: n/a
Default Replace =RAND() with =ABS(RAND())


"Harlan Grove" wrote in message
news
"James Silverton" wrote...
..
I think Microsoft needs to take quick action like Intel did with the

Pentium
bug many years ago. AFAIK, there were no reported financial losses due to
the Pentium bug but that might not be the case with RAND(). The ambulance
chasers and class actioners must be licking their lips!


We can only hope.



As I recall in the case of the Pentium bug, Andy Grove sent a letter to me
personally apologizing and offering prompt free replacement (machine
produced probably, but still!). I wonder if we see this from Bill Gates!


--
James V. Silverton
Potomac, Maryland, USA


  #25  
Old December 11th, 2003, 08:56 PM
Harlan Grove
external usenet poster
 
Posts: n/a
Default Replace =RAND() with =ABS(RAND())

"James Silverton" wrote...
...
As I recall in the case of the Pentium bug, Andy Grove sent a letter to me
personally apologizing and offering prompt free replacement (machine
produced probably, but still!). I wonder if we see this from Bill Gates!


I doubt it. More likely he'll baracade himself behind the disclaimers in the
EULAs which basically say that anyone who uses any Microsoft software has no one
but himself/herself to blame if that software does anything, either desired or
undesired. If you read the EULAs rather than the marketing BS, Microsoft has
never claimed its software does anything useful.

--
Never attach files.
Snip unnecessary quoted text.
Never multipost (though crossposting is usually OK).
Don't change subject lines because it corrupts Google newsgroup archives.
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 05:54 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.