I thought about this, but didn't dmquicksort compares neigbouring records? Then it 
needs many many walkthrougs before a record from position 1 is changed to be 
record number 300. Wouldnt the random here be to random ? (in the middle = 0)

Greets
Sebastian

On 13 Sep 2002 at 9:52, Ludovic Ferrandis wrote:

> It would not be more simple to simply call DmQuickSort?
> And in the callback function, you implement something that randomly 
> return -1, 0 or +1 (Something like SysRandom()%3 - 1, but better)
> 
> Ludovic, from Montpellier/France :)
> 
> Henk Jonas wrote:
> > 
> > DmMoveRecord ?
> > 
> > Henk, from Berlin too
> > 
> > Sebastian from Berlin/Germany wrote:
> > 
> >> Hey,
> >>
> >> i have a record-database and i want to bring the records in a random 
> >> order. How could i do this an easy way. I planned to shuffle them by 
> >> reading one deleting it and insert it at a random position ... but i 
> >> think this isn�t the easyest way :)
> >> Greets
> >> Sebastian
> > 
> > 
> > 
> 
> 
> -- 
> For information on using the Palm Developer Forums, or to unsubscribe, please see 
>http://www.palmos.com/dev/support/forums/



--

<knack> - Was ist das ? - Blaues Licht ! 
Was  macht  es  ? - Es  leuchtet  blau !
[Rambo]


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

Reply via email to