Answer Posted / swamireddy
to genarate random numbers in vb using the random fuction
the fuction systax for
function Random(Lowerbound As Long, Upperbound As Long)
Randomize
Random = Int(Rnd * Upperbound) + Lowerbound
End Function
this fuction use automatically genarate a random numbers.
how to call the fuction.
a=random(lowerbound,upperbound)
| Is This Answer Correct ? | 0 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
Compare java script and vb script?
How can constants be declared in the vbscript language?
How will you get a random number between 0 and 1 in vbscript?
What is event handling in vbscript?
Hi this is Vinoth. I need a help on below mentioned question A combobox contains list of items assume as 5 I have to get each items Individually and I have to Export to datatable. Please help me on this. Thanks
Which event is triggered when mouse focus comes out of an element in the vbscript language?
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?
What is the difference between function and procedure?
What are the rules to name variable in vbscript?
What is difference between vbscript and vba?
How are comments handled in the vbscript language?
What are class variables?
write a function to read the items from combobox of Flight reservation & save in excel (QTP)??
What is the purpose of on error resume next statement?