Answer Posted / cnu
Function Random(max,min)
Randomize
Random=Int((max-min+1)*Rnd+min)
End Function
Dim A
A = random(100,1)
msgbox ("The random numer is:" &A)
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
Can any one provide code for Mid(string,start[,length]). I have been asked to write code for Mid(). i.e We need to define our own function say MyMid() which should behave same like built-in Mid function
Explain the asc function?
How to Convert Hex color code to color name in VB Script?
What is the difference between javascript and vbscript?
Why is error handling required?
Write a function for Instr(). We need to write a function that works as same as Instr(). Code or Even pseudo code is good enough for me.?
what is the differance between BYVAL,BYREF?
I have attended Anovatek Software QTP interview. They will give us computer and one web based application with QTP. We have to automate some records (already updated records or new records) using QTP Data driven testing. But we should use for loop? Can any one know how to do data driven testing using For loop?
How regexp.execute method works?
How will you get a random number between 0 and 1 in vbscript?
What are the properties of regexp object?
please can you help me to get a code of flames using a visual basic 6
How are comments handled in the vbscript language?
how to automatically update the sql server2005 database records when insert in vb6?
i have a problem with this error(this error related edit and
delete button,when i click this button in datagrid..i will
get this error)"Invalid postback or callback argument.
Event validation is enabled using