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 |
In qtp, how to use XML files for framework. if the XML files are more Efficient than Excel files?
When to use function procedures and what are its characteristics?
Compare java script and vb script?
Explain about the asc function?
Difference between Do while loop and while wend loop
Which is the default Data types in VBScript?
What is the difference between vb debugger and the script debugger?
What is a class in CSS?
How will you reverse a string in vbscript?
Explain few date functions in vbscript?
Explain How do you create a recordset object in vbscript?
i need to sort the data using qtp script for this how i need to write a qtp script