If there are a max of 76 unique numbers to test for, use the bits of two longs to remember what values have been returned. Set a bit with OR and test a bit with AND
| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
|
Results 1 to 14 of 14
Thread: Generating random numbersThreaded View
Tags for this Thread |
Click Here to Expand Forum to Full Width |