next up previous contents index
Next: Reduction Functions Up: tcl_arrays.cc Previous: tcl_arrays.cc   Contents   Index

list generation

srand seed
Initialises the random seed
unirand size [max [min]
] Returns a list (of length size) of uniform random numbers, in the range min-max. max and min default to 1 and 0 respectively.
grand n [std [mean]
] Returns a list (of length size) of normally distributed random numbers, with mean mean and standard deviation std. std and mean default to 1 and 0 respectively.
prand n [std [mean]
] Returns a list (of length size) of Poisson distributed random numbers, with mean mean and standard deviation std. std and mean default to 1 and 0 respectively.
unique_rand size [max [min]
] Returns a list of unique random integers of length size between min and max, which default to 0 and size respectively.
constant size value
returns a list of size elements, each of value value.
pcoord size
returns a list of size elements, whose values are the numbers 0...size.


next up previous contents index
Next: Reduction Functions Up: tcl_arrays.cc Previous: tcl_arrays.cc   Contents   Index
Russell Standish 2016-09-02