diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2015-07-08 20:46:52 -0400 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2015-07-08 20:46:52 -0400 |
commit | fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4 (patch) | |
tree | bdda434976bc09c864f2e4fa6f16ba1952b1e555 /pkg/utilities/doc/urand.hlp | |
download | iraf-linux-fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4.tar.gz |
Initial commit
Diffstat (limited to 'pkg/utilities/doc/urand.hlp')
-rw-r--r-- | pkg/utilities/doc/urand.hlp | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/pkg/utilities/doc/urand.hlp b/pkg/utilities/doc/urand.hlp new file mode 100644 index 00000000..f5e54263 --- /dev/null +++ b/pkg/utilities/doc/urand.hlp @@ -0,0 +1,41 @@ +.help urand Mar84 utilities +.ih +NAME +urand -- uniform random number generator +.ih +USAGE +urand nlines ncols +.ih +PARAMETERS +.ls nlines +The number of lines of output to be generated. +.le +.ls ncols +The number of random numbers per output line. +.le +.ls ndigits = 4 +Number of digits of precision in each random number. +.le +.ls scale_factor = 1.0 +Factor by which the numbers are to be scaled (multiplied). +.le +.ls seed = 1 +Seed for the random number generator. If the value is "INDEF" then +the clock time (integer seconds since 1980) is used as the seed +value giving different random numbers for different executions. +.le +.ih +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. +.ih +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 \fBgraph\fR defaults) in both axes. + + cl> urand 100 2 | graph po+ xa- ya- +.endhelp |