MPI-AMRVAC 3.1
The MPI - Adaptive Mesh Refinement - Versatile Advection Code (development version)
|
Random number generator type, which contains the state. More...
Public Member Functions | |
procedure, non_overridable | set_seed (self, the_seed) |
Set a seed for the rng. | |
procedure, non_overridable | jump (self) |
procedure, non_overridable | int_4 (self) |
Return 4-byte integer. | |
procedure, non_overridable | int_8 (self) |
Return 8-byte integer. | |
procedure, non_overridable | unif_01 (self) |
Get a uniform [0,1) random real (double precision) | |
procedure, non_overridable | unif_01_vec (self, rr) |
Fill array with uniform random numbers. | |
procedure, non_overridable | normal (self) |
Single normal random number. | |
procedure, non_overridable | two_normals (self) |
Return two normal random variates with mean 0 and variance 1. http://en.wikipedia.org/wiki/Marsaglia_polar_method. | |
procedure, non_overridable | poisson (self, lambda) |
Return Poisson random variate with rate lambda. Works well for lambda < 30 or so. For lambda >> 1 it can produce wrong results due to roundoff error. | |
procedure, non_overridable | circle (self, radius) |
Sample point on a circle with given radius. | |
procedure, non_overridable | sphere (self, radius) |
Sample point on a sphere with given radius. | |
procedure, non_overridable | next (self) |
Interal routine: get the next value (returned as 64 bit signed integer) | |
Random number generator type, which contains the state.
Definition at line 20 of file mod_random.t.
|
final |
Sample point on a circle with given radius.
Definition at line 33 of file mod_random.t.
|
final |
Return 4-byte integer.
Definition at line 26 of file mod_random.t.
|
final |
Return 8-byte integer.
Definition at line 27 of file mod_random.t.
|
final |
Definition at line 25 of file mod_random.t.
|
final |
Interal routine: get the next value (returned as 64 bit signed integer)
Definition at line 35 of file mod_random.t.
|
final |
Single normal random number.
Definition at line 30 of file mod_random.t.
|
final |
Return Poisson random variate with rate lambda. Works well for lambda < 30 or so. For lambda >> 1 it can produce wrong results due to roundoff error.
Definition at line 32 of file mod_random.t.
|
final |
Set a seed for the rng.
Definition at line 24 of file mod_random.t.
|
final |
Sample point on a sphere with given radius.
Definition at line 34 of file mod_random.t.
|
final |
Return two normal random variates with mean 0 and variance 1. http://en.wikipedia.org/wiki/Marsaglia_polar_method.
Definition at line 31 of file mod_random.t.
|
final |
Get a uniform [0,1) random real (double precision)
Definition at line 28 of file mod_random.t.
|
final |
Fill array with uniform random numbers.
Definition at line 29 of file mod_random.t.