POV-Ray : Newsgroups : povray.text.scene-files : Weird Loop Behavior : Re: Weird Loop Behavior Server Time
15 Aug 2022 08:05:46 EDT (-0400)
  Re: Weird Loop Behavior  
From: jr
Date: 14 Jul 2022 10:55:00
Message: <web.62d02db7a05c0a6d1be3cd4b6cde94f1@news.povray.org>

"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 :-))

regards, jr.

Post a reply to this message

Copyright 2003-2021 Persistence of Vision Raytracer Pty. Ltd.