To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=53642
                  Issue #:|53642
                  Summary:|RAND works different in Calc and in Excel
                Component:|Spreadsheet
                  Version:|680m122
                 Platform:|PC
                      URL:|
               OS/Version:|Windows XP
                   Status:|UNCONFIRMED
        Status whiteboard:|
                 Keywords:|
               Resolution:|
               Issue type:|DEFECT
                 Priority:|P4
             Subcomponent:|code
              Assigned to:|spreadsheet
              Reported by:|regina





------- Additional comments from [EMAIL PROTECTED] Mon Aug 22 14:47:07 -0700 
2005 -------
The function RAND() returns a value in [0;1] in Calc.
It returns a value in ]0;1[ in Excel.

I do not know, which is the right behavior, so I assign it first to Spreadsheet.
If you decide that OOo is right (as I suggest), the description in the help must
be more precise. "Returns a random number between 0 and 1." can be [0;1] or
[0;1[ or ]0;1] or ]0;1[ in mathematics. Please assign it to Document in that 
case.

The difference between Calc and Excel becomes important, if you use
constructions like int(rand()*6)+1 to simulate a game of dice in Excel. If you
import it to Calc, you will get dicing value 7 sometimes.

OOo need not to adapt Excels behavior, because the RANDBETWEEN-function works
fine to simulate dicing.

---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to