How to generate 3 digit random number?
Answer Posted / nazeer ahmed
dim upperlimit
dim lowerlimit
dim randomnumber(4)
upperlimit = 500
lowerlimit = 1
For x = 0 to 4
randomize timer
randomnumber(x)=Int((upperlimit-lowerlimit+1)*Rnd)+lowerlimit
msgbox randomnumber(x)
Next
| Is This Answer Correct ? | 4 Yes | 2 No |
Post New Answer View All Answers
Which operator is used for fetching the modulus of the 2 numbers in the vbscript language?
How to add actions in driver script to run those actions in QTP?
Hai this is sheik, i want to learn VB scripts for web application pls guide me what are all basic things need to know to learn VB scripts in web application.
Plzzzzzzz can any one tell me which is the best institute in hyderabad for learing VBScript. plz do answer guys its urgent plzzzzzzz. thanks in advance.
How to open excel in vb script?
Give me sm ideas to write Vbscripts abt protocol testing abilash700@gmail.com.
i am having some basic knowledge in c and VB 6.0. i qtp i want to know how to write the codings. by recording it is generating lot of codings. for example i want to test the text box. senerio is text box should not accept alphabets if it accept alphabets we should return fail status if it get number we should return pass status. how to write coding in vb script please help me
How will you get the octal value of the given number in vbscript?
There are 5 web pages.write a script to click the button on 4th web page.
Explain the arrays in vb script?
Explain the adodb.stream class?
who will create the object?
Explain the operator precedence in vb script?
How to delete a cookie using vbscript?
Write a Program to add 2 numbers without using operators (+,-) and without using third variable. Note: Use VBScript only Hint: You can use other operators like '/' & '*'(Division & Multiplication)