random

Description

Generates random number of specified type from the specified interval.

Parameters

Attribute Description Default Required
min Interval low bound. 0 Yes
max Interval high bound. 1 Yes
type Result number type. Possible values:
int
double
double Yes
fraction Count of decimal digits in the double result number. 8 No
property The property to receive generated number. None Yes

Examples

Generate integer number and store to the Qty property:

	<random min="1" max="100" type="int" property="Qty"/>

Generate real number with 8 digits in fractional part and store to the Px property:

	
	<random min="1" max="100" type="double" property="Px"/> 

Generate real number with 4 digits in fractional part and store to the Px4 property:

	
	<random min="1" max="100" type="double" property="Px4" fraction="4"/>