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 |
how to operate webobjects in a webpage using getobject function and then using generic methods?
Explain the adodb.stream class?
Diff between web table ,datatable and data base (QTP)
What are the differences between sub procedures and function procedures?
How to find arry size in qtp vb script
What is the equivalent of VBScript?s On Error In Jscript ?
Which is the default Data types in VBScript?
which is the bset training centre to learn automation tools?
Can u describe what kind of testing are for OTC derivates by banks.
Why to use option explicit in vb script?
how to get date format from system locale..format means neither long nor shor... format from system locale. i need like your date is mm/dd/yyyy formate or mm-dd-yy or with time like that. how to get.
How will you release the memory acquired by an array variable in vbscript?