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 13:58:19 +0000 2011 ------- So, for 32 bit int 2147483646 / 2147483647 = 0,9999999995 2147483646 / 2147483648 = 0,9999999991 2147483647 / 2147483648 = 0,9999999995 and else { double nRand = (double)rand(); nRand = ( nRand / (double)RAND_MAX ); rPar.Get(0)->PutDouble( nRand ); } can be simple replaceced with else rPar.Get(0)->PutDouble( (double)rand() / ((double)RAND_MAX + 1. ) --------------------------------------------------------------------- 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]
