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.

Tags:
    
This wiki is hosted and managed by iXPath
Powered by XWiki 13.3 debian