Enables randomization for the thinktime periods specified in several functions. If randomization is enabled you can choose between exponential distribution and uniform distribution (parameter eOption). The seed value of the random number generator may be set using the RndSeed function.
Kernel.bdh
SetRandomThinkTime( in bRandom : boolean in eOption : number optional, in nDeviation : number optional );
Parameter | Description |
---|---|
bRandom | If this parameter is set to true, randomization for thinktime periods is enabled |
eOption |
Can be either:
|
nDeviation | The deviation factor used if OPT_THINKTIME_UNIFORM is set (in %). |
dcltrans transaction TMain begin SetRandomThinkTime(true, OPT_THINKTIME_EXPONENTIAL); WebUrl("http://standardhost/index.html", 2.1); // 2.1 is the mean value of the // exponential distributed thinking period end TMain;