Random number on Refresh!!

Results 1 to 2 of 2

Thread: Random number on Refresh!!

  1. #1
    Join Date
    Dec 1969

    Default Random number on Refresh!!

    I&#039;m trying to generate a random number each time the screen is refreshed (or on the page reloaded) via VBScript. I am using the following code:<BR><BR>intLow = 100000<BR>intHigh= 999999<BR>idnumber = FormatNumber(Int((intHigh - intLow + 1) * RND + intHigh),0,0,0,0)<BR><BR><BR>But this seems to be generating the same number over and over. Any help would be appreciated.<BR><BR>dep<BR>

  2. #2
    Join Date
    Dec 1969

    Default RE: Random number on Refresh!!

    Check out the Randomize statement.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts