add a feature for random renaming
Posted: 14 Apr 2010 06:35
Sometimes, I like to rename some files name into random string including letter and digits.
Thanks.
Thanks.
Forum for XYplorer Users and Developers
https://www.xyplorer.com/xyfc/
Could combine that with a while loop, maybe a chr() or two, and rename() and end up with your very own random renaming feature.rand()
Generates an integer random number.
Syntax: rand([low=0], [high=1])
low: [optional] the lowest value to return (default: 0)
high: [optional] the highest value to return (default: 1), should be same or higher than low
return: random number
Examples
echo rand(); //returns 0 or 1
echo rand(2, 4); //returns 2 or 3 or 4
echo rand(-1, 1); //returns -1 or 0 or 1
Code: Select all
(000000001, 999999999)