I'd make the outer loop a while loop instead of a for loop, keep track of how many numbers you've added to the output array and keep looping till that number = 5. Generate the random number. Use...
CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
Search:Type: Posts; User: GCDEF Search: Search took 0.75 seconds.
Results 1 to 3 of 3
|
Click Here to Expand Forum to Full Width |