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 |
Hi I don't have any idea on VBscript. can any one point me to a good web site to learn VBscript. Regards lina
Can we create Crystal Report object in QTP?If yes then what it is and what are its various properties?
Explain about the asc function?
What is vbscript?
What are the naming conventions while declaring a variable in the vbscript language?
how to find greatest of n numbers!
how to automatically update the sql server2005 database records when insert in vb6?
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.
Mention what is select case statement?
What is the difference between vbscript and vba?
Could Anybody Please tell me What is the script for Find 3rd Largest element in the Array without using a SORT function int Find(int arr[], int size); Thanks in Advance..
Here in my automation tool, i am retreiving some values and i need to store this values in the excel. How can i achieve this?. We are using VBA as scripting language. please let me know if you require any further inputs.