Thanks for the advice, Ken. It's an excellent suggestion and I'll give it a try.
Trying to think three-dimensionally,
-Jason
On Wednesday, November 12, 2003, at 02:21 AM, Ken Ray wrote:
Jason,
The problem is (IMHO) that you're removing the correct answers from the list so that you "eat away" at your overall list of answers. I would suggest that you maintain two lists in memory: one list is the one with all of the possible answers (basically what you read in button 1 - gSourceData), the other contains the list that gets correct answers removed when they are used so they won't be used again (I'll call it 'gAvailableData').
When you start on a specific drill, you pick a line randomly from
gAvailableData for the correct answer and remove it from gAvailableData.
You then temporarily copy gSourceData into a temporary variable, remove
the correct answer ALSO, leaving you with a temporary variable that only
contains incorrect answers. Randomly pick the other three from this
temporary variable, and run the drill. For each drill you do,
gAvailableData will diminish, but gSourceData will not - thus avoiding
the problem of having not enough data to do a drill.
Hope this helps,
Ken Ray
Sons of Thunder Software
Email: [EMAIL PROTECTED]
Web Site: http://www.sonsothunder.com/
_______________________________________________ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
