Hi,
randomizer =: (64007&|@*&15091)^:40000
randomizer 500
14341
Dom
Jean Claude Coez a écrit :
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...)
Thanks
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm