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
How to replace junk code recorded by QTP with a mall function.
How to capture a runtime error in vbscript?
Write program for identifyig duplicates in flight Departing from and Arriving in mercury tours(web application).
How will you get the smallest subscript of an array in vbscript?
Set srchobj=Description.Create() srchobj("type").value="text" srchobj("name").value="q" srchobj("html tag").value="input" browser("micclass:=google").Page("micclass:=google").webedit (srchobj).Set "qtp" what's wrong in my code pls tell me ? the above code working fine and i got my result pass,now i am trying to run the program it shows general run time error why?pls help me i am in learning stage ?
Explain about the extension .hta?
How are values assigned to the variables in the vbscript language?
When does ‘on click of button’ event gets triggered in the vbscript language?
Explain about operator precedence in vb script?
Hi Friends, I have an issue like the describe below: I'm using QTP and I'm testing on SharePoint. As you knoe, SharePoint has a customize function for user, so that, If I add an object Web Table at the first time, that object was recognized by "index" and "html tag", after that, if someone change the display of web part, the "Index" of my object was changed as well and QTP unable to select that Web Table. Can you guide me how to identify or anyway to keep that Web Table object as unique object? Thanks a lot.
How will you get a subset of a array in vbscript?
Which operator can be used to change the value of the operand or change the state of the condition?
What are events in the vbscript language?
Explain How do you create a recordset object in vbscript?
How will you convert a given number to long in vbscript?