This tool helps you randomly shuffle file order by renaming files with random number prefixes. It's particularly useful for applications that only sort by filename.
random_rename.py
- Adds random number prefixes to all files in the current directoryrestore_names.py
- Restores the original filenames
- Install a Python app from the Play Store (like Pydroid 3)
- Copy these scripts to the folder containing the files you want to rename
- Run the scripts using your Python app
- Open
random_rename.py
in your Python app - Run the script
- All files in the current directory will be renamed with random number prefixes
- A hidden file
.filename_mapping.json
will be created to store original names
- Open
restore_names.py
in your Python app - Run the script
- All files will be restored to their original names
- The mapping file will be automatically deleted
- The scripts will not rename themselves or any other .py or .json files
- Make sure to keep both scripts and the mapping file together until you restore the original names
- Always run the restore script before running the random rename script again