0% found this document useful (0 votes)
79 views

Random Number

Uploaded by

Narendra Ashar
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as XLS, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
79 views

Random Number

Uploaded by

Narendra Ashar
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as XLS, PDF, TXT or read online on Scribd
You are on page 1/ 7

Name Synopsis

RAND RAND()

RANDBERNOULLI RANDBERNOULLI(p)

RANDBETA RANDBETA(a,b)

RANDBETWEEN RANDBETWEEN( bottom, top)

RANDBINOM RANDBINOM(p,trials)

RANDCAUCHY RANDCAUCHY(a)

RANDCHISQ RANDCHISQ(nu)

RANDDISCRETE RANDDISCRETE( val_range[,


prob_range])

RANDEXP RANDEXP(b)

RANDEXPPOW RANDEXPPOW(a,b)

RANDFDIST RANDFDIST(nu1,nu2)

RANDGAMMA RANDGAMMA(a,b)

RANDGEOM RANDGEOM(p)

RANDGUMBEL RANDGUMBEL(a,b[,type])

RANDHYPERG RANDHYPERG(n1,n2,t)

RANDLANDAU RANDLANDAU()
RANDLAPLACE RANDLAPLACE(a)

RANDLEVY RANDLEVY(c,alpha[,beta])

RANDLOG RANDLOG(p)

RANDLOGISTIC RANDLOGISTIC(a)

RANDLOGNORM RANDLOGNORM(zeta, sigma)

RANDNEGBINOM RANDNEGBINOM(p, failures)

RANDNORM RANDNORM(mean,stdev)

RANDNORMTAIL RANDNORMTAIL(a,sigma)

RANDPARETO RANDPARETO(a,b)

RANDPOISSON RANDPOISSON(lambda)

RANDRAYLEIGH RANDRAYLEIGH(sigma)

RANDRAYLEIGHTAIL RANDRAYLEIGHTAIL(a,
sigma)

RANDTDIST RANDTDIST(nu)

RANDUNIFORM RANDUNIFORM(a,b)

RANDWEIBULL RANDWEIBULL(a,b)

SIMTABLE SIMTABLE(d1, d2, ..., dN)


Description Examples
RAND returns a random number between zero and one. RAND() returns a random
number greater than zero
but less than one.

RANDBERNOULLI returns a Bernoulli-distributed random number. RANDBERNOULLI(0.5).

RANDBETA returns a Beta-distributed random number. RANDBETA(1,2).

RANDBETWEEN function returns a random integer number between and RANDBETWEEN(3,7).


including bottom and top.

RANDBINOM returns a binomially-distributed random number. RANDBINOM(0.5,2).

RANDCAUCHY returns a Cauchy-distributed random number with scale RANDCAUCHY(1).


parameter a. The Cauchy distribution is also known as the Lorentz
distribution.

RANDCHISQ returns a Chi-Square-distributed random number. RANDCHISQ(0.5).

RANDDISCRETE returns one of the values in the val_range. The RANDDISCRETE(A1:A6)


probabilities for each value are given in the prob_range. returns one of the values in
the range A1:A6.

RANDEXP returns a exponentially-distributed random number. RANDEXP(0.5).

RANDEXPPOW returns a random variate from the exponential power RANDEXPPOW(0.5,0.1).


distribution with scale parameter a and exponent b. The distribution is,

p(k) = C(n_1,k) C(n_2, t-k) / C(n_1 + n_2,k),


where C(a,b) = a!/(b!(a-b)!).

The domain of k is max(0,t-n_2), ..., max(t,n_1).

RANDFDIST returns a F-distributed random number. RANDFDIST(1,2).

RANDGAMMA returns a Gamma-distributed random number. RANDGAMMA(1,2).

RANDGEOM returns a geometric-distributed random number. The number RANDGEOM(0.4).


of independent trials with probability p until the first success. The probability
distribution for geometric variates is,

p(k) = p (1-p)^(k-1), for k >= 1.


*If p < 0 or p > 1 RANDGEOM returns #NUM! error.

RANDGUMBEL returns a Type I or Type II Gumbel-distributed random RANDGUMBEL(0.5,1,2).


number. type is either 1 or 2 and specifies the type of the distribution (Type
I or Type II).

RANDHYPERG returns a hypergeometric-distributed random number. The RANDHYPERG(21,1,9).


probability distribution for hypergeometric random variates is,

RANDLANDAU returns a random variate from the Landau distribution. The RANDLANDAU().
probability distribution for Landau random variates is defined analytically by
the complex integral,

p(x) = (1/(2 pi i)) int_{c-i infty}^{c+i infty} ds exp(s log(s) + x s).

For numerical purposes it is more convenient to use the following


equivalent form of the integral,

p(x) = (1/pi) int_0^ infty dt exp(-t log(t) - x t) sin(pi t).


RANDLAPLACE returns a Laplace-distributed random number. Laplace RANDLAPLACE(1).
distribution is also known as two-sided exponential probability distribution.

RANDLEVY returns a Levy-distributed random number. If beta is omitted, it RANDLEVY(0.5,0.1,1).


is assumed to be 0.

RANDLOG returns a logarithmic-distributed random number. RANDLOG(0.72).

RANDLOGISTIC returns a logistic-distributed random number. The RANDLOGISTIC(1).


distribution function is,

p(x) dx = { exp(-x/a) over a (1 + exp(-x/a))^2 } dx for -infty < x < +infty.

RANDLOGNORM returns a lognormal-distributed random number. RANDLOGNORM(1,2).

RANDNEGBINOM returns a negative binomially-distributed random RANDNEGBINOM(0.5,2).


number.

RANDNORM returns a normal-distributed random number. RANDNORM(0,1).

RANDNORMTAIL returns a random variates from the upper tail of a normal RANDNORMTAIL(0.5,0.1).
distribution with standard deviation sigma. The values returned are larger
than the lower limit a, which must be positive. The method is based on
Marsaglia's famous rectangle-wedge-tail algorithm (Ann Math Stat 32, 894-
899 (1961)), with this aspect explained in Knuth, v2, 3rd ed, p139, 586
(exercise 11).

RANDPARETO returns a Pareto-distributed random number. RANDPARETO(1,2).

RANDPOISSON returns a Poisson-distributed random number. RANDPOISSON(3).

RANDRAYLEIGH returns a Rayleigh-distributed random number. RANDRAYLEIGH(1).

RANDRAYLEIGHTAIL returns a random variate from the tail of the RANDRAYLEIGHTAIL(0.3,1


Rayleigh distribution with scale parameter sigma and a lower limit of a. The ).
distribution is,

p(x) dx = {x over sigma^2} exp ((a^2 - x^2) /(2 sigma^2)) dx, for x > a.

RANDTDIST returns a T-distributed random number. RANDTDIST(0.5).

RANDUNIFORM returns a random variate from the uniform (flat) RANDUNIFORM(1.4,4.2)


distribution from a to b. The distribution is, returns a random number
greater than or equal to 1.4
p(x) dx = {1 over (b-a)} dx : for a <= x < b. but less than 4.2.
p(x) dx = 0 : for x < a or b <= x.

* If a > b RANDUNIFORM returns #NUM! error.

RANDWEIBULL returns a Weibull-distributed random number. RANDWEIBULL(1,2).

SIMTABLE returns one of the values in the given argument list depending SIMTABLE(TRUE,FALSE)
on the round number of the simulation tool. When the simulation tool is not returns TRUE on the first
activated, SIMTABLE returns d1. simulation round and
FALSE on the second
round.
URL of full description
http://www.gnome.org/projects/gnumeric/doc/gnumeric-RAND.shtml

http://www.gnome.org/projects/gnumeric/doc/gnumeric-RANDBERNOULLI.shtml

http://www.gnome.org/projects/gnumeric/doc/gnumeric-RANDBETA.shtml

http://www.gnome.org/projects/gnumeric/doc/gnumeric-RANDBETWEEN.shtml

http://www.gnome.org/projects/gnumeric/doc/gnumeric-RANDBINOM.shtml

http://www.gnome.org/projects/gnumeric/doc/gnumeric-RANDCAUCHY.shtml

http://www.gnome.org/projects/gnumeric/doc/gnumeric-RANDCHISQ.shtml

http://www.gnome.org/projects/gnumeric/doc/gnumeric-RANDDISCRETE.shtml

http://www.gnome.org/projects/gnumeric/doc/gnumeric-RANDEXP.shtml

http://www.gnome.org/projects/gnumeric/doc/gnumeric-RANDEXPPOW.shtml

http://www.gnome.org/projects/gnumeric/doc/gnumeric-RANDFDIST.shtml

http://www.gnome.org/projects/gnumeric/doc/gnumeric-RANDGAMMA.shtml

http://www.gnome.org/projects/gnumeric/doc/gnumeric-RANDGEOM.shtml

http://www.gnome.org/projects/gnumeric/doc/gnumeric-RANDGUMBEL.shtml

http://www.gnome.org/projects/gnumeric/doc/gnumeric-RANDHYPERG.shtml

http://www.gnome.org/projects/gnumeric/doc/gnumeric-RANDLANDAU.shtml
http://www.gnome.org/projects/gnumeric/doc/gnumeric-RANDLAPLACE.shtml

http://www.gnome.org/projects/gnumeric/doc/gnumeric-RANDLEVY.shtml

http://www.gnome.org/projects/gnumeric/doc/gnumeric-RANDLOG.shtml

http://www.gnome.org/projects/gnumeric/doc/gnumeric-RANDLOGISTIC.shtml

http://www.gnome.org/projects/gnumeric/doc/gnumeric-RANDLOGNORM.shtml

http://www.gnome.org/projects/gnumeric/doc/gnumeric-RANDNEGBINOM.shtml

http://www.gnome.org/projects/gnumeric/doc/gnumeric-RANDNORM.shtml

http://www.gnome.org/projects/gnumeric/doc/gnumeric-RANDNORMTAIL.shtml

http://www.gnome.org/projects/gnumeric/doc/gnumeric-RANDPARETO.shtml

http://www.gnome.org/projects/gnumeric/doc/gnumeric-RANDPOISSON.shtml

http://www.gnome.org/projects/gnumeric/doc/gnumeric-RANDRAYLEIGH.shtml

http://www.gnome.org/projects/gnumeric/doc/gnumeric-RANDRAYLEIGHTAIL.shtml

http://www.gnome.org/projects/gnumeric/doc/gnumeric-RANDTDIST.shtml

http://www.gnome.org/projects/gnumeric/doc/gnumeric-RANDUNIFORM.shtml

http://www.gnome.org/projects/gnumeric/doc/gnumeric-RANDWEIBULL.shtml

http://www.gnome.org/projects/gnumeric/doc/gnumeric-SIMTABLE.shtml
The documentation on this spreadsheet is adopted from the Debian package
gnumeric-doc_1.6.3-0ubuntu4_all.deb retrieved from the Ubuntu Dapper/main
repository and translated into spreadsheet format by Alan Tam and Cliff Man on
2006-05-24 and numerous dates onwards.

Gnumeric was originally debianized by Vincent Renardias <[email protected]


<mailto:[email protected]>> on Sat, 26 Sep 1998 17:15:24 +0200.

Gnumeric sources, which include the Gnumeric Manual, can now be found at
http://www.gnome.org/gnumeric/ <http://www.gnome.org/gnumeric/> .

Release 1.0 of the Gnumeric Manual is copyright 1998, 1999, 2000, 2001, 2002 by
Miguel de Icaza, Jody Goldberg, Thomas Canty, Jukka-Pekka Iivonen, Andreas J.
Guelzow, Wayne Schuller, Adrian Custer, Kevin Breit, Aaron Weber, Alexander
Kirillov under the following terms:

Permission is granted to copy, distribute and/or modify this document under the
terms of the GNU Free Documentation License, Version 1.1 or any later version
published by the Free Software Foundation with no Invariant Sections, no
Front-Cover Texts, and no Back-Cover Texts.

The license can be found at


http://www.gnu.org/licenses/old-licenses/fdl-1.1.txt

You might also like