Received: by 10.100.135.16 with SMTP id i16mr549763and.11.1220587590424; Thu, 04 Sep 2008 21:06:30 -0700 (PDT)Date: Thu, 4 Sep 2008 21:06:30 -0700 (PDT)X-IP: 58.168.203.43User-Agent: G2/1.0X-Google-Token: XU8NEgwAAADQiV9uP7Hm5l_UK0Z3PI6cX-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.1) Gecko/2008072820 Firefox/3.0.1,gzip(gfe),gzip(gfe)Message-ID: Subject: random number generation - ‘rand’ & ‘?’ - what algorithm does K use?From: gord To: “Kdb+ Personal Developers” X-Google-Approved: simon.garland@gmail.com via email at 2008-09-05 06:24:37Does anyone know what algorithm is used internally for rand ‘?’ inthe K language ?related Qns - Does K use the OS form of rand() syscall or say Knuths linear congruential [as per java’s rand] Are there Mersenne or Sobol sequence generators written in K, thatare public? Does K support bitwise operations - xor rotate shiftleft >> <<< masketc ?suggestions?thanks in advance, [I searched google and kxcode but could not findthis online]gord.quantblog.wordpress.com
this is the one currently usedhttp://en.wikipedia.org/wiki/Multiply-with-carryno bitwise operations at the moment2008/9/5 gord :>>> Does anyone know what algorithm is used internally for rand ‘?’ in> the K language ?>> related Qns -> Does K use the OS form of rand() syscall> or say Knuths linear congruential [as per java’s rand]> Are there Mersenne or Sobol sequence generators written in K, that> are public?> Does K support bitwise operations - xor rotate shiftleft >> <<< mask> etc ?>> suggestions?>> thanks in advance, [I searched google and kxcode but could not find> this online]>> gord.> quantblog.wordpress.com>> >>