Rand
Last modified by Achraf El Kari on 2024/08/06 13:05
Introduction
The Rand function creates a random whole number for various uses.
Parameters
- Case 1 (1 param) => exponent (Type: Double): Determines the range of the random number. A higher exponent means a larger range.
- Case2 : (2 param) => Get a random number between two numbers
Return ValueType:
A whole number randomly generated and rounded.
Uses
Case 1 : Get random number with 10 digits
<TEST><xsl:value-of select="ixf:Rand('10')"></xsl:value-of></TEST>
Case 2 : Get a random number between 3 and 7
<TEST><xsl:value-of select="ixf:Rand('3','7')"></xsl:value-of></TEST>
Note
The Rand function provides diverse and unpredictable values.