IRAF help page for package utilities, program urand

from NOAO urand -- uniform random number generatorUSAGEPARAMETERSDESCRIPTIONEXAMPLES

urand -- uniform random number generator


USAGE

urand nlines ncols


PARAMETERS

nlines

The number of lines of output to be generated.

ncols

The number of random numbers per output line.

ndigits = 4

Number of digits of precision in each random number.

scale_factor = 1.0

Factor by which the numbers are to be scaled (multiplied).

seed = 1

Seed for the random number generator.


DESCRIPTION

The system random number generator is called to generate a sequence of random numbers in list form. By default, the random numbers will be uniformly distributed over the range 0 to 1. The number of lines of output, number of columns (random numbers) per line, and number of significant digits in each number may all be set by the caller.


EXAMPLES

Generate a sequence of 100 random numbers and graph them on the graphics terminal in point plot mode. Autoscaling is turned off so that the plot will be scaled to the rand 0-1 (the graph defaults) in both axes.

cl> urand 100 2 | graph po+ xa- ya-


This page automatically generated from the iraf .hlp file. If you would like your local iraf package .hlp files converted into HTML please contact Dave Mills at NOAO.

dmills@noao.edu