Question:

I need a simple ASP code. Can you help me? If you are good on ASP then pls help me :(

by  |  earlier

0 LIKES UnLike

I need an ASP code.

This code must give me 4 numbers between 100 and 200

How can you do that?

For example, it must give me 25 69 54 87

randomly selects 4 numbers between two numbers.

thanks!

 Tags:

   Report

1 ANSWERS


  1. x=Int((upperbound - lowerbound + 1) * Rnd + lowerbound)

    will give you 1 random number between lowerbound and upperbound

    replace these with the two limits that you want and run it 4 times in a loop. If you end up getting the same 4 numbers for x use Randomize before the above statement within the loop.

Question Stats

Latest activity: earlier.
This question has 1 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.