"Dave Blandston" <IsN### [at] protonmailch> wrote:
> "jr" <cre### [at] gmailcom> wrote:
> > question re code ...
> ... NSuccesses does not count the number of individual prisoners who find
> their numbers, it counts the number of successful exercises in which all
> prisoners find their numbers. ...
thanks (makes sense, "or all fail together..").
> There is one part of the simulation that needs to be improved first, which is
> the part that puts a random slip in each box. The current code is extremely
> inefficient and will take about a week to complete for one million prisoners. I
> have an idea to speed this operation up significantly, which will be a fun
> exercise of its own.
ideally that code/macro would take two args - the number of prisoners/boxes, and
the number of chains (and perhaps dictate their lengths too?). (have a feeling
this code can find other uses :-))
Post a reply to this message