Manuals/calci/PATTERNED

From ZCubes Wiki
Revision as of 20:41, 24 October 2013 by MassBot1 (talk | contribs) (Created page with "<div id="6SpaceContent" class="zcontent" align="left"> '''RANDOMNUMBERGENERATION'''(Number, RandomNumber, Distribution,  NewTableFlag, FromNum, ToNum, StepSize, NumRep) ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

RANDOMNUMBERGENERATION(Number, RandomNumber, Distribution,  NewTableFlag, FromNum, ToNum, StepSize, NumRep)

where,

Number - represents the number of variables.

RandomNumber - represents the number of random number

Distribution - represents the distribution method(i.e patterned) to create random values.

NewTableFlag - is the TRUE or FALSE.If set as TRUE,the result in new sheet. If NewTableFlag is omitted, it assumed to be FALSE.

FromNum - represents the start number.

ToNum - represents the end number.

StepSize - represents the repeating the number.

NumRep - represents the repeating the sequence.


A patterned distribution is a distribution  of random occurrences in which one occurrence has repeating number and sequence in between start and end number.

Lets see an example in (Column1Row1)

=RANDOMNUMBERGENERATION(3, 4, "Patterned", TRUE,1, 5, 3, 4 )

RANDOMNUMBERGENERATION returns the result in new sheet(143Space).

=RANDOMNUMBERGENERATION(5, 4, "Patterned", TRUE, 2, 5, 3, -1)

RANDOMNUMBERGENERATION returns the #ERROR(NumRep < 0).


RANDOM NUMBER GENERATION : PATTERNED


Syntax

Remarks

Examples

Description

If Number < 0 or RandomNumber < 0, RANDOMNUMBERGENERATION returns the #ERROR.

RANDOMNUMBERGENERATION returns the #ERROR, if StepSize < 0 or NumRep < 0.


Random Number Generation
Binomial Distribution
0 1 1
1 0 2
0 2 1
1 1 1

Random Number Generation
Poisson Distribution
0 0 1
1 1 2
0 1 0
2 2 1


Random Number Generation
Patterned Distribution
1 1 1
1 1 1
1 1 1
3 3 3
3 3 3
3 3 3
5 5 5
5 5 5
5 5 5