vb.net - Getting a random number in MS Visual Basic 2008 -
I am new to MS Visual Basic 2008. In fact, I am currently enrolled in the class. My final project for the class will generate random numbers within a series of numbers. For example, if I give the user five text windows, then to select the number to input or a random number is generated, I will have a button called randomize. Unfortunately, I do not know the code line (s) for random work.
Thanks for the help.
Try this method to generate a random number with a given minimum and maximum range :
Generate private functionsRandomName (minimum as integer, maximize as integer) as random random number of random () random random Next (minimum, maximum) end function Call it like this:
Dim I as Integer = GenerateRandomNumber (0, Int32.MaxValue);
Comments
Post a Comment