How to generate 3 digit random number?

Answer Posted / prathyusha

Randomize
intmax=1000
intmin=300
rNum=Int((intmax-intmin+1)*Rnd+intmin)
MsgBox rnum

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can u describe what kind of testing are for OTC derivates by banks.

1670


How to Enter Values on the Command promt using VB script

1534


Which object is used to work with the database in the vbscript language and what statement is used to create this object?

513


Write a code to print numbers from 5 to 0?

677


How can the spaces from the string be removed?

593






Explain the functionality of vbscript?

540


Out of the different type of operators, which are evaluated first and last in the vbscript language?

567


What are lbound and ubound in the vbscript language?

609


What is the difference between do until loop and do while loop?

545


write any ttest cases using check points and parameterization

1823


How will you get the octal value of the given number in vbscript?

502


What are the properties of regexp object?

581


What are class properties?

657


Hello friends..... Can any give the methods for Ms-Access, and Mozilla firefox in Automation Object Model in QTP. Please give me currect answers... if you do not understand my question please don't give answers. Thanking you.

1852


Which conditional statement is the most convenient one to use in the case of multiple conditions in the vbscript language?

526