generating random values

Results 1 to 2 of 2

Thread: generating random values

  1. #1
    Join Date
    Dec 1969

    Default generating random values

    i wish to generate a random value in ASP, i am aware of a Rnd function but unsure of how it is used, for example a number from 1 - 4:<BR>Int((4-1 +1) * Rnd + 1<BR>how do i do this properly??!<BR>Thank you!<BR>

  2. #2
    Join Date
    Dec 1969

    Default Go to the left panel of this page...

    Click on "VBScript Reference" (BOOKMARK this if you haven&#039;t already!)<BR><BR>Click on "Functions" in the list of topics that appears.<BR><BR>Click on "RND" in the list of functions.<BR><BR>Read.<BR><BR>The docs even tell you how to produce a random number in a given range.<BR><BR>***********<BR><BR>There are also topics in the ASPFAQs on this, but in this case the MS docs do a wonderful job.<BR><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