Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

Mixed random number problem

z_wang
Beginner
427 Views

Dear Steve,

Thank you very much for the reply.

I have another question about random generator. Since the standard normal distribution generator only appears in IMSL, while the uniform distribution by RAND_NUMBER(..) is an intrinsic function. If both of these two kind random number is needed, is it a good style to mix them in the codes? If yes, should I set their seeds separately?

Thank you for your consideration.

Best regards,

James

0 Kudos
1 Reply
Steven_L_Intel1
Employee
427 Views
If you need both kinds of generators, there's no problem at all using them both. The seeds need to be set separately, as I indicated in the other topic. The IMSL routines do not know about RANDOM_SEED.
0 Kudos
Reply