<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<br>
<div class="moz-cite-prefix">On 11/28/2012 05:41 PM, Kohei Yoshida
wrote:<br>
</div>
<blockquote
cite="mid:CAKyzJ7odrSPpfww3xipe8GeF+NX1dZYm8u2+WReZMG2=s+OTew@mail.gmail.com"
type="cite"><br>
<div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">
<br>
</div>
Not sure I understand. My suggestion is that boost::mt19937 is
the<br>
only underlying generator algorithm (generating int's) which
is then<br>
transformed to get RAND() and RANDBETWEEN(i,j). Yet both are
simple<br>
uniform distributions but the user might need Normal
distributed<br>
random variables and then RAND() is of little use. So a
function like<br>
RANDNORMAL() which generates N(0,1) (still using
boost::mt19937)<br>
random numbers would be a useful addition, wouldn't it?<br>
</blockquote>
<div><br>
Ah ok. I think I mis-understood. Bear with me, as I'm not that
versed with random number generation algorithms at the moment.<br>
<br>
Well, my position is that, since you know the subject matter
very well, and if you think it's a useful addition then I'm
with you.<br>
<br>
My only concern is that, we try to be compliant with ODF
formula specification, and I'm not sure how adding a custom
function (that only we understand) would affect that
compliance and interoperability with other ODF generators. I
still want to encourage adding new and useful functions; I
just want to know what sort of things we need to be aware of
when adding our own custom functions. Eike, do you have any
insight on this?<br>
<br>
Kohei
</div>
</div>
</blockquote>
A few thoughts:<br>
<br>
Breaking ODF compatibility is probably a bad thing. I did not check,
but I assume that the normal distribution is either specified or
assumed for ODF.<br>
<br>
I assume that introducing new functions "breaks" ODF, or at least
means that other systems that support ODF will not support what is
done. As such, is there any way that random functions with different
distributions can be implemented in an addin / extension?<br>
<br>
<br>
<pre class="moz-signature" cols="72">--
Andrew Pitonyak
My Macro Document: <a class="moz-txt-link-freetext" href="http://www.pitonyak.org/AndrewMacro.odt">http://www.pitonyak.org/AndrewMacro.odt</a>
Info: <a class="moz-txt-link-freetext" href="http://www.pitonyak.org/oo.php">http://www.pitonyak.org/oo.php</a>
</pre>
</body>
</html>