Results 1 to 2 of 2

Thread: rnd()

  1. #1
    Join Date
    Dec 1969

    Default rnd()

    hello all&#039;<BR>just wondering what is the best way of generating a unique number every time eg. <BR>the following does&#039;t always generated a unique number from the previous number.<BR><BR>&#060;%<BR>sub getNumber(val)<BR>randomize()<BR>randomNum = int(val * rnd())<BR>response.Write(randomNum)<BR>end sub<BR><BR>call getNumber(4)<BR>%&#062;

  2. #2
    Join Date
    Dec 1969

    Default ASPFAQs, category Math

    The link to the ASPFAQs is at the top right corner of this very page.<BR><BR>Your question is in the category noted in the subject of this posting.<BR><BR>The ASPFAQs are your friends. Visit your friends often.<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