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
How can the spaces from the string be removed?
How to make professional test report using vbscript code in UFT, which gives us complete analysis of the test.
In the Web page we have a table link, if we click on that link all the contents under that link will be sorted (asscending/Descending). Now i want to check in which order the list is ? for that i need to get the data in to some var How can i get that cells data?
What is the use of option explicit statement?
regular expression that will recognize a browser as long as its name property starts with mybrowser
How to Import data from a file (file is on the desktop) to the data table
how to write a vb script in QTP for yahoo registration form, i want to check the performance also like performance test, stress, load test like that.
Explain the functionality of vbscript?
How to write functions and sub in vb script?
Explain the adodb.stream class?
What is byref and byval parameters in vbscript?
how to increase the values in text box in a given text box increament by two values by clicking on button
Which function is used in the vbscript language to convert the specified expression into a date type value?
what is resorceallocation
How will you get the largest subscript of an array in vbscript?