[metapost] Drawing a urn
hartmut_henkel at gmx.de
Thu Nov 29 18:29:04 CET 2007
On Thu, 29 Nov 2007, Troy Henderson wrote:
> However, for the problem that we wants to solve, I believe the
> randomness (no matter what probability density function is used) is
> only to determine the position of the balls and not how many balls are
> painted a particular color.
yes, which leads to other implementations: put exactly as many black
balls in as needed, but place them randomly (avoiding collisions), or e.
g. put balls first in regularly and then stir them up randomly (e.g.
repeatedly exchanging balls between two random positions.
More information about the metapost