Get a list of files in a folder Filter away files that are not skins Pick a random file from the array of files Load the contents of the file and apply the skin to a player if the player skin is saved in raw format, or parse the PNG file into raw format first, then apply it to a player