Octopus
distribution_gaussian_oct_m Module Reference

This module provides a random number generator for a normalized gaussian distribution. More...

Detailed Description

This module provides a random number generator for a normalized gaussian distribution.

Functions/Subroutines

real(real64) function, dimension(1:n, 1:2), public normal_distribution_get_random (seed, n)
 This function implements the Box Mueller algorithm to produce n pairs of normal distributed random numbers. More...
 

Function/Subroutine Documentation

◆ normal_distribution_get_random()

real(real64) function, dimension(1:n, 1:2), public distribution_gaussian_oct_m::normal_distribution_get_random ( integer(int64), intent(inout)  seed,
integer, intent(in)  n 
)

This function implements the Box Mueller algorithm to produce n pairs of normal distributed random numbers.

Definition at line 125 of file distribution_gaussian.F90.