Moving specific number of files to sub folders

I have an old Subaru that accepts a USB drive to play music. The limitation is that it can only handle a maximum of 256 files per folder, with a maximum of 256 folder.
I can’t seem to find a post I thought I’d seen in the forum about doing this exact set of actions, but I can no longer find it.
I want to use Hazel to copy a random selection of 256 files from a master directory, then create & name a folder and then copy those 256 files to this new folder. It should continue creating new folders and copying files until all have been copied.
My limited knowledge of Hazel tells me that for each file I copy, I will need to tag the file then copy it to the new folder so that I do not copy the same file again.
Any direction or help figuring this out would be greatly appreciated
I can’t seem to find a post I thought I’d seen in the forum about doing this exact set of actions, but I can no longer find it.
I want to use Hazel to copy a random selection of 256 files from a master directory, then create & name a folder and then copy those 256 files to this new folder. It should continue creating new folders and copying files until all have been copied.
My limited knowledge of Hazel tells me that for each file I copy, I will need to tag the file then copy it to the new folder so that I do not copy the same file again.
Any direction or help figuring this out would be greatly appreciated