The mgiRandomNumber Tag

Tag Behavior

Use the mgiRandomNumber tag to display a random number within a specified range.


Tag Syntax

The mgiRandomNumber tag has no required parameters and two optional parameters. The tag form is:

<mgiRandomNumber lowerBound="Integer" upperBound="Integer">

Required Parameters:

  • None.

Optional Parameters:

  • lowerBound - The lowerBound is the the smallest whole number in the range from which random numbers are generated.
  • upperBound - The upperBound is the the largest whole number in the range from which random numbers are generated.


Example Usage and Output

<mgiRandomNumber>

In this example, a random number between 1 and 4,294,967,295 will be displayed.

<mgiRandomNumber lowerbound="1" upperbound="1000">

In this example, a random number between 1 and 1000 will be displayed.

<mgiRandomNumber lowerbound="10000" upperbound="99999">

In this example, a random number between 10000 and 99999 will be displayed.


Suggested Usage

  • Password Protection
  • Unique Database Data
  • Browser Caching Problems


[Understanding MGI Menu] [Using MGI Menu] [Referencing MGI Menu]


[MGI Guides Main Menu] [User Guide Main Menu]