|
-
Jul 27th, 2011, 02:46 PM
#3
Thread Starter
Banned
Re: generate random number from range
 Originally Posted by Edgemeal
You should clarify what this code actually returns.
I'd bet most new coders would expect this to return a random number between 65 to 90 but it doesn't.
Random.Next Method (Int32, Int32)
The range of return values includes minValue but not maxValue.
the code was tested and worked on vb.net 2010
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|