Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Sorting file names randomly



On Nov 19, 12:57am, Bart Schaefer wrote:
}
} } Is there any chance that prepending "$i." and hashing it will
} } decrease the randomness of the shuffle significantly?
} 
} I no longer remember why I didn't just use h[$RANDOM]

Oh, duh ... it's to assure that the keys are unique.  That's what I get
for trying to answer email last thing before I go to bed.



Messages sorted by: Reverse Date, Date, Thread, Author