I interpret "nice" to mean "beautiful". What is beauty, my son? It's a life-long search and endeavour.
(64007 | 15091 * ]) ^:(<n) ?64007 ----- Original Message ----- From: Raul Miller <[EMAIL PROTECTED]> Date: Tuesday, September 16, 2008 2:42 Subject: Re: [Jprogramming] pseudo-random sequence To: Programming forum <[email protected]> > On Tue, Sep 16, 2008 at 4:50 AM, Jean Claude Coez > <[EMAIL PROTECTED]> wrote: > > Choose an integer U0 such that (0 < U0 <= 64006 ) > > then define a pseudo-random sequence as: > > Un+1 = ( 15091 * Un ) mod 64007 > > while n < 40000 for instance. > > > > What would be a nice J solution ? (apart my ugly solution > which I don't dare > > to show...) > > Nice for what purpose? > > -- > Raul ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
