[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] Re: a question about pseudo random integers

2010-12-07 Thread Gene
Well for one thing if your rng is very good you can use a single 32- bit integer to generate 16 numbers in [0..3]. On Dec 7, 11:08 am, pfb pf.buonsa...@gmail.com wrote: Hi all,  I have a question about pseudo random number generation. My code currently employs a standard pseudo random number