I know the subject of random numbers has been brought up before, and we all
know
about SYSRANDOM at this point. It's applying that knowledge in a practical
way I have
a question about.

I was wondering if anyone has a better way of "shuffling" records in a data
file, for
a quiz application.  What I'm doing is taking TimGetTicks as the seed for
SysRandom,
using that to randomly pull a record and set an ORDER field.  I increment
the value for
the ORDER field and do this all over again, hoping to randomly fill my
records with
an incrementing number.  I then call DmQuickSort sorting on that ORDER
value.

It's not working too well.  Has anybody got a better way to do this?  There
must
be one, this stinks.

Stephen Bentley
www.middlecross.com



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to