In some special-purpose Calc use cases, it would be very useful if the random numbers produced by the RAND() function would be the same each time LibreOffice is run on a document. Ditto for RANDBETWEEN().
Could you specify this special use cases? I think it's not possible because rand() have to be random. There are not options in rand> http://docs.oasis-open.org/office/v1.2/os/OpenDocument-v1.2-os-part2.html#__RefHeading__1018560_715980110
You don't understand.
To be more verbose, of course I know that RAND() should be be (pseudo-)random in all normal use cases. I am talking about a special case that never would be entered by accident by a normal user. We already have the code for this is master, but I think this bug report is necessary to have a rationale for doing it in the libreoffice-4-4 branch, too. See https://gerrit.libreoffice.org/#/c/14053/ .
Sometimes is difficult understand what is not explained. Is the special case a secret?
In benchmarking it is necessary to both be able to measure performance, but also correctness. Clearly if we have a benchmark that includes RAND() - it is then hard to check correctness - without being able to force deterministic behavior on RAND. Clearly that is not a common case - but it is vital for this corner-case. We're working on publishing some sensible documents that people can play with too - but that's still in progress. HTH.
Patch committed to master and 4-4.
Thanks for detail and of course for the work. I think understandably now, may be it could be of interest for some users. Truly appreciated to see some focus on performance, IMHO the area more needed of improvement in Calc.
If you have a specific case of a document whose calculations or loading has slowed down from one version of LibreOffice to the next, or is significantly (an order of magnitude) slowed in LibreOffice than in a competing product, please file a detailed bug report with a minimal sample document. Just complaining in general, in a comment on a totally unrelated bug report, is not how to do it.
(In reply to Tor Lillqvist from comment #8) > please file a detailed bug report with a minimal sample document. Just > complaining in general, in a comment on a totally unrelated bug report, is > not how to do it. Forgive me if I explain bad. I'm not complaining, just the contrary, thinking it could be a future enhancement.