|
| subroutine | pmc_rand::pmc_srand (seed, offset) |
| | Initializes the random number generator to the state defined by the given seed plus offset. If the seed is 0 then a seed is auto-generated from the current time plus offset. More...
|
| |
| subroutine | pmc_rand::pmc_rand_finalize () |
| | Cleanup the random number generator. More...
|
| |
| real(kind=dp) function | pmc_rand::pmc_random () |
| | Returns a random number between 0 and 1. More...
|
| |
| integer function | pmc_rand::pmc_rand_int (n) |
| | Returns a random integer between 1 and n. More...
|
| |
| integer function | pmc_rand::prob_round (val) |
| | Round val to floor(val) or ceiling(val) with probability proportional to the relative distance from val. That is, Prob(prob_round(val) == floor(val)) = ceil(val) - val. More...
|
| |
| integer function | pmc_rand::rand_poisson (mean) |
| | Generate a Poisson-distributed random number with the given mean. More...
|
| |
| integer function | pmc_rand::rand_binomial (n, p) |
| | Generate a Binomial-distributed random number with the given parameters. More...
|
| |
| real(kind=dp) function | pmc_rand::rand_normal (mean, stddev, prob_threshold) |
| | Generates a normally distributed random number with the given mean and standard deviation. More...
|
| |
| subroutine | pmc_rand::rand_normal_array_1d (mean, stddev, val) |
| | Generates a vector of normally distributed random numbers with the given means and standard deviations. This is a set of normally distributed scalars, not a normally distributed vector. More...
|
| |
| subroutine | pmc_rand::sample_without_replacement (sample_size, population_size, sample) |
| | Generates a vector of indices for a sample set from a population without replacement. More...
|
| |
| integer function | pmc_rand::sample_cts_pdf (pdf) |
| | Sample the given continuous probability density function. More...
|
| |
| integer function | pmc_rand::sample_disc_pdf (pdf) |
| | Sample the given discrete probability density function. More...
|
| |
| subroutine | pmc_rand::sample_vec_cts_to_disc (vec_cts, n_samp, vec_disc) |
| | Convert a real-valued vector into an integer-valued vector by sampling. More...
|
| |
| character function | pmc_rand::rand_hex_char () |
| | Generate a random hexadecimal character. More...
|
| |
| subroutine | pmc_rand::uuid4_str (uuid) |
| | Generate a version 4 UUID as a string. More...
|
| |
The pmc_rand module.
Definition in file rand.F90.