Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

how to genarate a random numbers in vb?

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


Please Help Members By Posting Answers For Below Questions

What is the difference between vb debugger and the script debugger?

1108


Can we create Crystal Report object in QTP?If yes then what it is and what are its various properties?

3447


Mention how to access array data?

972


What is difference between vbscript and vba?

1192


Is VB Script Case sensitive or Case insensitive?

1085


How can you create an object in vbscript?

1064


Differentiate javascript and vbscript?

1013


write any ttest cases using check points and parameterization

2254


What is the use of the date function in the vbscript language?

1016


Explain what is loose binding? Why is it not a good practice to use it?

1063


What if you do not specify anything when you call a procedure?

1108


How to capture a runtime error in vbscript?

1139


Which object is used to work with the database in the vbscript language and what statement is used to create this object?

985


Out of the different type of operators, which are evaluated first and last in the vbscript language?

981


Which operator is used for fetching the modulus of the 2 numbers in the vbscript language?

993