or I need to change to use something like RANDOM_MAX?
which version of generating the random number is more portable? Cause I encountered using srand()/rand() in my program. And this program works in my i7 computer, but not working in AMD clusters. Strange, please help out. Thanks.