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


Please Help Members By Posting Answers For Below Questions

Explain sga memory structures?

582


can anyone tell me the procedure of interview held in applabs

1755


How to use QTP Object in .vbs(vbscript file) file Ex: Browser().., wait(), exist() and etc...

2905


Explain vbscript in detail?

617


How to Convert Hex color code to color name in VB Script?

3934






What is the use of the instr function?

585


Which constant is used for print and display functions and works as same as pressing enter key?

532


how to acces the remote mechine using vb cript(QTP)

1607


What is the use of the formatdatetime function in the vbscript language?

556


create a form to accept username and password validate the username and password with using message box, display the corresponding user message

2164


what is inner join? what is outer join? what is a constraint? tell me about rdbms? tell me about acid properties?

1437


What is the use of option explicit statement?

585


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 ?

1554


How can you create a file object to work with the files in the vbscript language?

513


Can someone please tell me what poor design in a relational database (not the layout or style) is and how it can be avoided? PLEASE...im desperate.

1417