Description:
|
Returns a string randomly selected from the list of items. If no weight is specified, a weight of 1 is assumed. Each virtual user gets a different seed value to generate unique sequences. |
Parameters:
|
string1-The first string in a list to return.
nWeight1-Positive integer indicating the relative weight of the first string.
string2-The second string in a list to return.
nWeight2-Positive integer indicating the relative weight of the second string.
stringN-The last string in a list to return.
nWeightN-Positive integer indicating the relative weight of the last string. |
Syntax:
|
$BFRandList(string1[:nWeight1], string2[:nWeight2], …,stringN[:nWeightN]) |
Example:
|
$BFRandList("Red", "White":2, "Blue":5) The value White will be returned 2 times more often than the value Red. The value Blue will be returned 5 times more often than the value Red. |
© ALL RIGHTS RESERVED. Nutzungsbedingungen Datenschutz Cookie Preference Center