How to generate 3 digit random number?
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / prathyusha
Randomize
intmax=1000
intmin=300
rNum=Int((intmax-intmin+1)*Rnd+intmin)
MsgBox rnum
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / eswar
For i=1 to 3
x = RandomNumber(1,9)
y=y&x
Next
MsgBox y
| Is This Answer Correct ? | 0 Yes | 1 No |
PLz send me the VB scripts which is having more examples my email id : hareen_11@yahoo.com
What is the output of a + b in vbscript if a = 5 and b = 10?
how to retrive the tooltip by using descriptive programming in qtp?
By default in vbscript the arguments passed to functions and subroutines are by reference or by value?
How to write VB Script for selecting a particular row in a WebTable?
write a vb script to display the reverse of vbs
We have an application which is built using multiple technologies and are using QTP as the tool for Automating the same. While we spy over a combo box in this application, we get the object name as a "Combo Control" and we are not able to perform any action over this object in either selecting or checking any method for the same like "Exist" etc. Hence we thought of a solution and the same can be found below
How are arrays declared in the vbscript language?
How will you reverse a string in vbscript?
What are the uses of vb script?
Is it possible to pass optional argument to function in vb script?
Explain about adodb.stream class?