Automation bytes

what is the best way to produce bytes in an automated way??