Oh Father !!! For me, beauty is the opposite of ugly, even if my english is
not subtle enough (sorry...)
Anyway I understand now the use of ^: with a boxed integer.
I still believe it's very nice...and I will go on to search.
Thanks to everybody
JCC
----- Original Message -----
From: "Roger Hui" <[EMAIL PROTECTED]>
To: "Programming forum" <[email protected]>
Sent: Tuesday, September 16, 2008 4:38 PM
Subject: Re: [Jprogramming] pseudo-random sequence
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
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm