|
I understood the issue and was trying to stay with a VARPG-only solution as I felt that you wanted this to be a learning exercise for you, too. As I read the question I sensed, probably wrongly, that you were duplicating my early algorithm of trying to use the green screen cycle for an event driven program. --------------------------------- Booth Martin http://www.martinvt.com --------------------------------- -------Original Message------- From: RPG programming on the AS400 / iSeries Date: 03/11/05 00:19:11 To: RPG programming on the AS400 / iSeries Subject: Re: Random number in VARPG Booth, the randomization needs to be done _before_ he starts answering questions. This is the program flow I'm trying to create: 1-select which multiplication tables he wants to treat (presently 1 through 10) via check boxes 2-create all questions & answers in an array 3-randomize the array so that the questions are not ordered anymore 4-read through the array, ask questions & store the results (correct/wrong) As I said earlier, step 2 is so quick that the array is filled within a few milliseconds, resulting in many duplicate timer values. Thanks anyway, Peter Colpaert Application Developer Massive - Kontich, Belgium ----- Yoda of Borg are we. Futile is resistance, assimilated will you be. ----- "Booth Martin" <booth@xxxxxxxxxxxx> Sent by: rpg400-l-bounces@xxxxxxxxxxxx 10/03/2005 16:49 Please respond to RPG programming on the AS400 / iSeries To: "RPG programming on the AS400 / iSeries" <rpg400-l@midrange com> cc: Subject: Re: Random number in VARPG VARPG has a timer part. Perhaps you could use the timer? The timer sample has a bouncing VARPG, but if you made that an image and he clicked the image to get a new question.... Then use the timer value??? I think the timer value is 1000 ticks per second. --------------------------------- Booth Martin http://www.martinvt.com --------------------------------- -- This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list To post a message email: RPG400-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/mailman/listinfo/rpg400-l or email: RPG400-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at http://archive.midrange.com/rpg400-l. .
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.