how to genarate a random numbers in vb?
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / 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 |
How to replace junk code recorded by QTP with a mall function.
Explain the string concatenation function in vbscript?
give me an ex. of unoverloaded method?
What are the data types supported by vbscript?
wht must be the interview question on corinthian information technology solutions incorporated.
Can anyone send me a vb script function for verifying the functionality of active links on a web page
Explain about vb script?
Which object provide information about a single runtime error in a vbscript?
What is difference between Active screen and movie screen recorder in QTP 9.2?
Input = 124 output should be 124421 Please do not use any string functions/variables
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
write a program to display configuration of a local system with the help of vb script.