ZTree.com  | ZEN  | About...  

 Index   Back

[Q] Sort files into random sequence?   [Q]

By: Ian Binnie   Homepage   Sydney  
Date: Dec 21,2010 at 05:01
In Response to: [Q] Sort files into random sequence? (Leonard R. Miller)

> I have a list of files which I want to copy to another drive. But I
> want them to have a random sequence and I see that Ztree doesn't offer
> that.

> Any way I can generate a list of unique integers?

As Ben has pointed out, random does not mean unique.
If you want to order a list apparently randomly, then you could create a checksum from the names, and sort from this. CRC-16 is a simple algorithm, and should be "random" enough.

Unless you are copying files to a FAT drive, this will be a waste of time.
FAT orders entries as they are created, all other file systems perform some ordering.

934 views      
Thread locked
 

Messages in this Thread

 
95,888 Postings in 12,107 Threads, 350 registered users, 25 users online (1 registered, 24 guests)
Index | Admin contact |   Forum Time: May 23, 2022 - 6:30 pm UTC  |  Hits:48,180,333  (13,651 Today )
RSS Feed