To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=116920





------- Additional comments from [email protected] Sun Feb 13 14:22:56 
+0000 2011 -------
http://msdn.microsoft.com/en-us/library/398ax69y.aspx says, that MS VC 2010 
still 
use 32767 as RAND_MAX for rand().

If this is true, we get
32767/32768 = 0,999969482 max with 1/32768 granularity on Windows,
2147483647/2147483648=0,9999999995 max with 1/2147483648 granularity on Linux.

It is even slightly better than it was :-) .

So, (double)rand()/((double)RAND_MAX+1.) is good enough.

---------------------------------------------------------------------
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