Dear sirs
I've been looking for a way to simulate data with different distributions (normal, poisson, exponential, etc.) in the .tex file. The use of GSL library is a good option, but it seems impossible to import in luatex. Another way is using the R-statistical through filter module***, which seems to work well in luatex. At this time I would try to import the GSL functions through python script. For that i think that i need the older luatex 0.42 but I don't find that.
***
\defineexternalfilter
[R]
[
filtercommand={R CMD BATCH -q --save --restore \externalfilterinputfile\space \externalfilteroutputfile},
output=\externalfilterbasefile.out,
directory=output,
readcommand=\typefile,
read=no,
cache=yes,
]
Jorge