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

Random numbers

cr362
Beginner
434 Views

Hi, I have a question about random numbers.

I can get uniformly distributed random numbers using the following subroutine:

RANDOM_NUMBER()

But, is there a subroutine to get normally distributed random numbers?

And what about a random permutation of the integers 1:n (e.g. randperm in matlab)?

Many Thanks!
0 Kudos
1 Reply
Steven_L_Intel1
Employee
434 Views
Not as a standard Fortran intrinsic. There are many libraries of random number routines out there/ Intel MKL,included with your Fortran, also has many random number routines.
0 Kudos
Reply