Yes, I was pining for it. I thought GB_Flip was it by another name. I will try to use your roll verb. Thanks very much.
On Tue, Feb 23, 2010 at 11:01 AM, Roger Hui <[email protected]> wrote: > Please read the vocabulary page for ? > http://www.jsoftware.com/help/dictionary/d640.htm > In particular the part for 9!:44 and 9!:45. > The RNGs now in use in J can not be completely > determined by a "seed" which is a single integer. > > If you are pining for the old linear conguenial generator, > here it is: > > tick =: [ <....@%~ (* 3 : 'qrl=:(<:2^31)|(7^5)*qrl')@] > roll =: (<:2^31)&tick"0 > qrl =: 16807 > > I understand that it, with its period of _1+2^31, is totally > unacceptable for modern usage. Some users have > also complained that GB_Flip has too short a period > (_1+2^55). > > > -- (B=) ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
