NCL Website header

Random number generators

generate_2d_array Generates a "nice" 2D array of pseudo random data, especially for use in 2D graphics.
generate_sample_indices Generate indices (subscripts) for resampling: with and without replacement.
generate_unique_indices Generate unique random indices (subscripts).
rand Generates a pseudo-random number.
random_chi Generates random numbers using a chi-squared distribution.
random_gamma Generates random numbers using a gamma distribution.
random_normal Generates random numbers using a normal distribution.
random_setallseed Sets initial seeds for random number generators.
random_uniform Generates random numbers using a uniform range distribution.
srand Establishes a seed for the rand function.