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 throw an error in vbscript?
Explain vbscript in detail?
Write a program to resize an array of 5 elements to 4 elements and display all the elements.
can u test the application without add-in?
Explain about .wsf files?
How to declare an array in vbscript?
write any ttest cases using check points and parameterization
What are events in the vbscript language?
What is Querystring collection?
Which loop is used in case of arrays in the vbscript language?
what is the use of QCUtil? explain with one example?
What is the difference between a dictionary and an array?