Random number generator in PTX

Does anyone have a good random number generator in PTX,or assembler code? Im not looking for something suited for cryptology, but just something slightly better than a linear congruential generator.

Any help appreciated, thanks!

Ajes - I don’t have any PTX or ASM code for you, but I want to make sure you are aware that a linear congruential generator can be VASTLY improved by the simple act of shuffling its output. Press et al give some good shuffling algorithms. If you want to go this route and can’t find any references, send me an email and I’ll send you some C code that should be easy for you to translate. However, I will be away 6/29-7/17.

Tim

Thanks a lot Tim, I wasn’t aware of this, its a great tip! I’ll try to read up on it.