![]() |
|
|
Generate a Random Number between 2 Specified NumbersThe code below will produce a random number between 2 specified numbers. In the code below we set the lowest number to 3 and the highest number to 8. So our code below will assign the value 3, 4, 5, 6, 7 or 8 to the variable randomNum and then be displayed on our screen. <% The code above produces this result: 6You can change the value of lowestNumber and highestNumber to suit your purposes.
Site developed by Michael Wall - Web Design Belfast N.Ireland. |
|