Chat now with support
Chat with Support

Benchmark Factory for Database 8.2.1 - User Guide

Getting Started Licensing Overview of Benchmark Factory Benchmark Factory Components Agents Create and Edit Connections Create and Edit Tests and Jobs Test Results and Run Reports Troubleshooting The Benchmark Factory REST API

BFRandList

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.

 

 

Related Documents

The document was helpful.

Select Rating

I easily found the information I needed.

Select Rating