Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ rand(1G) — UTek 3.0

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

abs(1g)

af(1g)

bar(1g)

bel(1g)

bucket(1g)

ceil(1g)

cor(1g)

cusum(1g)

cvrtopt(1g)

dtoc(1g)

erase(1g)

exp(1g)

floor(1g)

gamma(1g)

gas(1g)

gd(1g)

ged(1g)

graphics(1g)

gtop(1g)

hardcopy(1g)

hilo(1g)

hist(1g)

hpd(1g)

intro(1g)

label(1g)

list(1g)

log(1g)

lreg(1g)

mean(1g)

mod(1g)

pair(1g)

pd(1g)

pie(1g)

plot(1g)

point(1g)

power(1g)

prime(1g)

prod(1g)

ptog(1g)

qsort(1g)

quit(1g)

rank(1g)

remcom(1g)

root(1g)

round(1g)

siline(1g)

sin(1g)

subset(1g)

td(1g)

tekset(1g)

title(1g)

total(1g)

ttoc(1g)

var(1g)

vtoc(1g)

whatis(1g)

yoo(1g)

rand(3c)

gps(5g)



RAND(1G)                COMMAND REFERENCE                RAND(1G)



NAME
     rand - generate random sequence

SYNOPSIS
     rand [ -cn ] [ -hn ] [ -ln ] [ -mn ] [ -nn ] [ -sn ]

DESCRIPTION
     Output is a vector of number random elements in a given
     range.  The range can be set by specifying its low and high
     ends, or its low end and a multiplier.

     The range of numbers is determined by the parameters low,
     high, and multiplier.  The sequence of numbers is determined
     by the parameter seed.  These parameters are set by
     command-line options.

     Random numbers are first generated in the range 0 to 1,
     initialized by the seed.  If a multiplier is given, each
     number is then multiplied by its value.  If no multiplier is
     given, each number is multiplied by high-low (default 1).
     Finally, low is added to each number.

OPTIONS
     -cn  n elements per output line.

     -hn  high:=n.  If not given, high:=1.

     -ln  low:=n.  If not given, low:=0.

     -mn  multiplier:=n.  If not given, multiplier:=high-low.  If
          you use both -m and -h, the -h option is ignored.

     -nn  number:=n.  If not given, number:=10.

     -sn  seed:=n.  If not given, seed:=1.  n must be an integer.
          Any given seed produces the same sequence of random
          numbers each time you use it.

EXAMPLES
     The following example generates ten random numbers between 0
     and 1.

          rand

     The following example generates ten random numbers between
     10 and 35, three per line.

          rand -l10,h35,c3

     The following example also generates ten random numbers
     between 10 and 35, three per line.




Printed 5/12/88                                                 1





RAND(1G)                COMMAND REFERENCE                RAND(1G)



          rand -l10,m25,c3

SEE ALSO
     abs(1g), af(1g), bar(1g), bel(1g), bucket(1g), ceil(1g),
     cor(1g), cusum(1g), cvrtopt(1g), dtoc(1g), erase(1g),
     exp(1g), floor(1g), gamma(1g), gas(1g), gd(1g), ged(1g),
     graphics(1g), gtop(1g), hardcopy(1g), hilo(1g), hist(1g),
     hpd(1g), intro(1g), label(1g), list(1g), log(1g), lreg(1g),
     mean(1g), mod(1g), pair(1g), pd(1g), pie(1g), plot(1g),
     point(1g), power(1g), prime(1g), prod(1g), ptog(1g),
     qsort(1g), quit(1g), rank(1g), remcom(1g), root(1g),
     round(1g), siline(1g), sin(1g), subset(1g), td(1g),
     tekset(1g), title(1g), total(1g), ttoc(1g), var(1g),
     vtoc(1g), whatis(1g), yoo(1g), rand(3c), and gps(5g).









































Printed 5/12/88                                                 2





































































%%index%%
na:264,83;
sy:347,320;
de:667,935;
op:1602,884;
ex:2486,411;3233,28;
se:3261,1513;
%%index%%000000000116

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026