user manual
48 SilkPerformer Java Explorer User Guide
3 S
ETTING UP TESTS
Random Variable Wizard
For each string value you must define a weighted number that indicates the
probability that the string value will be chosen. Weighted numbers are integer
numbers.
Strings from a pattern
Declares a random variable of type RndStr. With each access, such a variable
contains a random string value. The characters of the string and the length of the
string are generated randomly following a uniform distribution.
The pattern string defines the characters that are to be used when constructing
random strings. The length of calculated strings is selected randomly with a
uniform distribution based on defined minimum and maximum lengths
(including boundaries).
Number Random Values
The Random Variable Wizard allows you to define random variables that return
integers. Values can either be calculated based on a weighted number list or by
specifying a number range.
Integer numbers
Declares a random variable of type RndUniN. With each access, such a variable
contains a value that is generated following a uniform distribution. The
parameters of the RndUniN function specify the minimum value and the
maximum value of uniform distributions. Within these boundaries all integer
values have the same probability (including the boundaries).
Weighted integer numbers
Declares a random variable of type RndInd. With each access, such a variable
contains a random value whose type is either string or integer, depending on the
syntax of the declaration. All possible values for the random variable, along
with their probabilities, must be declared. You cannot mix integer and string
values.
For each integer value you must define a weighted number that indicates the
probability that the integer value will be selected. Weighted numbers are integer
numbers.
Float Random Values
The Random Variable Wizard allows you to define a random variable that
returns a float. Currently there is only one possible definition for generating float
values.
Floating point numbers
Declares a random variable of type RndUniF. With each access, such a variable
contains a value that is generated following a uniform distribution. The
parameters of the RndUniF function specify the minimum value and the
maximum value of the uniform distribution.