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 create the metapost code. Metapost only knows
about uniformdeviate and normaldeviate, and metapost is not a good
language to program mathematics in.

Best wishes,
Taco
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to