Random Numbers?

Results 1 to 2 of 2

Thread: Random Numbers?

  1. #1
    Ed Guest

    Default Random Numbers?

    When I use this code,<BR><BR>&#060;%<BR>rndMax = 400<BR>rndNumber = Int(RND * rndMax)<BR>Response.Write rndNumber<BR>%&#062;<BR> <BR>Why is the same random number generated everytime I access the file. How can I get it to generate a different random number everytime the age is accessed.<BR><BR>Thanks,<BR><BR>Ed

  2. #2
    Join Date
    Dec 1969

    Default RE: Random Numbers?

    You need to initialize the random number generator first:<BR><BR>Randomize()<BR>&#039then your code.<BR>

Posting Permissions

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