Enclosed is the source code for a customized random functions. This was written in C++ and must remain in C++. However, there are two enhancements needed for this function. First, the generaterandomlist needs to have one more parameter. Its an optional parameter. The parameter should be called settocontinue (or something like that). If that parameter is in there, then the new random list would append to that list. Must also make sure there are no repeats (the final results should still show no repeats).
The same thing with GenerateRandomListEx. The variable type would be randomlist which is like a collection. Here's some examples of what I mean.
Let's say the first list had these items (4, 6, 2), the list it cannot contain are 15, 12, and the new function needs to return an additional 5 items and the maxnumber is 20, then one possible output would be
4, 6, 2, 8, 13, 1, 5, 9
For the second one, if the list is 10, 5 , 4 and the previous one is 15, then the final results may be 15, 5, 10, 4
Let me know if you have any questions about this.
The compiled dll and the source code for the dll.
Windows 98, Windows XP Home Edition.