Yeah .... I agree .... basic question and can be found out by reading the docs ... but I know I have asked some stupid questions.<BR><BR>Anyway, to expand on my friend's answer ..... look for it on some online docs. And also I would HIGHLY recommend buying a book. This one is great.<BR>http://www.wrox.com/Books/Book_Details.asp?sub_section=11_3&isbn=1861003382& subject=ASP&subject_id=28<BR>It will answer a LOT of your questions.
The Math<BR><BR>For a random number between any two numbers a & b do<BR><BR>(b-a)*Rnd() + a<BR><BR>for random integers between a & b do<BR><BR>int((b-a)*rnd()+a)+.5) Notice I'm rounding not rounding down, this will give you a better distribution of results.