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 ?
Here's one approach: U=: 64007| (? 64007) * 15091(64007&|)@^ i. 4000 -- Raul ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
