IMPORTANTE ----->Random NUmber

Results 1 to 4 of 4

Thread: IMPORTANTE ----->Random NUmber

  1. #1
    Jose Cuervo Guest

    Default IMPORTANTE ----->Random NUmber

    How do I create a random number between 0 and rs.recordcount?<BR><BR>I want to select an applicant by random, in asp.<BR><BR>Yo quiero taco bell...

  2. #2
    Steve Cimino Guest

    Default RE: IMPORTANTE ----->Random NUmber

    Check out the Randomize sub and the Rnd function under VBScript reference on the toolbar on the left. It will have examples of what you need.

  3. #3
    Liverwurst Guest

    Default THANX MAN

    That&#039s what I needed. Much appreciated..<BR><BR>thanks

  4. #4
    New ASP Guest

    Default RE: IMPORTANTE ----->Random NUmber

    To produce random integers in a given range, use this formula: <BR><BR>Int((upperbound - lowerbound + 1) * Rnd + lowerbound)<BR><BR>Here, upperbound is the highest number in the range, and lowerbound is the lowest number in the range.<BR><BR>Don&#039t forget add the:<BR><BR>*Randomize* before it, or you will always get the same numbers.<BR><BR>Good luck!<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