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

Reply via email to