generate_unique_indices
Generate unique random indices (subscripts).
Available in version 5.0.0 or later.
Prototype
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl" function generate_unique_indices ( N : integer )
Arguments
NThe number of unique random subscripts to be generated.
Return value
A one dimensional array containing the unique random integer subscripts (indices).
Description
Uses a random algorithm to generate unique subscripts.
Examples
Example 1: Generate 500000 random unique subscripts (indices).
i = generate_unique_indices( 500000 )