The Random method returns an integer between –32768 to 32767.
Tools.random
This method is similar to the Rnd function but returns an integer.
To get a positive random integer, use the Abs function.
To get a random integer below a specific value, use the Mod function.
<% = Tools.Random %> will display a random integer between
–32768 to 32767. For example, -13067. <% = ( Abs( Tools.Random ) ) %> will display a positive random integer. For example, 23054. <% = ( Abs( Tools.Random ) ) Mod 100 %> will display a random integer between 0 and 99. For example, 63.