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 |
wht must be the interview question on corinthian information technology solutions incorporated.
In QTP how to insert a data base check point for web based application and simultaneous link to code in expert veiw. hw to retrieve a data(single coulumn from server) that matches with inserted value manually or exported from excel sheet.
write a vb script to create a folder?
Both Static and dynamic arrays are handled by VB script. Is it true?
How can you destroy an object in vbscript?
write a vb script to display the code "vbscripting" alphabet by alphabet(i e 1st v then b and up to g)
who you define variables and functions in VB?
Write a program to resize an array of 5 elements to 4 elements and display all the elements.
What is the event handling in vbscript?
Explain the .wsf files?
How do you write an SQL insert statement?
How you can call vbscript functions?