Results 1 to 3 of 3

Thread: Random number generator

  1. #1
    Guest

    Post

    How would create a random number generator between the limits of 1 and 20 for a multiple choice test??

  2. #2
    Lively Member
    Join Date
    Nov 1999
    Posts
    64

    Post

    Randomize Timer 'Tell the clock to randomize
    x = int(rnd * 20) + 1 'now pick any number within 1 and 20
    'Do not remove the "+1" part!!

  3. #3
    Lively Member
    Join Date
    Jul 1999
    Posts
    99

    Post

    you can check Rnd() from the vb help file it includes a formula to get a random number with a variable lower bound and upperbound.

Posting Permissions

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



Click Here to Expand Forum to Full Width