Random number generators discussion

Random number generators | www.agner.org

 
thread Random 64 - Oleg Bulychov, Andrew Tsyganov - 2009-09-27
last reply Random 64 - Agner - 2009-09-27
 
Random 64
Author:  Date: 2009-09-27 11:49
Dear Agner,

First of all, thank you very much for your work.
We use your uniform random number generators in a cross-platform library of parallel metaheuristic algorithms.

Our library is aimed to work for both x86 and x64 architectures. The problem is that there is no generator that returns the random number of the type size_t(==int64_t). Is it a good idea to generate two int's and combine them into one int64_t?

Best regards,
Oleg Bulychov, Andrew Tsyganov.

   
Random 64
Author: Agner Date: 2009-09-27 12:49
Oleg Bulychov, Andrew Tsyganov wrote:
Is it a good idea to generate two int's and combine them into one int64_t?
Yes