Re: [NTG-context] Random numbers in metapost

2009-12-31 Thread Taco Hoekwater
David Arnold wrote: Hi, Does anyone have any strategies for drawing random numbers from various statistics distributions in Metapost? For example, say, drawing 100 random numbers from a beta distribution? Assuming you are using mkiv: create a lua function and use its calculated results to

Re: [NTG-context] Random numbers in metapost

2009-12-31 Thread David Arnold
Taco et al, I think I've found a way. Anthony Phan has written a brilliant stats package for Metapost. http://www-math.univ-poitiers.fr/~phan/statsmac.html I think (haven't tried yet) I can select a number at random from the uniform distribution on [0,1], then use one of Anthony's functions

[NTG-context] Random numbers in metapost

2009-12-30 Thread David Arnold
Hi, Does anyone have any strategies for drawing random numbers from various statistics distributions in Metapost? For example, say, drawing 100 random numbers from a beta distribution? David ___ If your question is