[algogeeks] Re: a question about pseudo random integers

2010-12-08 Thread pfb
Hi Gene, and thanks for your reply! Yes, I had thought of something like that. However, it seems sort of cumbersome to me: I guess I would want to split the 32-bit integer by means of 32 bitwise ands... Or probably there's a smarter way. Anyway, if the random integers come in bunches of 16 I'd

[algogeeks] a question about pseudo random integers

2010-12-07 Thread pfb
Hi all, I have a question about pseudo random number generation. My code currently employs a standard pseudo random number generator developed by Knuth, which is basically a black box to me. Since 1) My code spends most of the time generating the random integers it needs. 2) Most of the times