110v 60hz to multiple different hz

Ok the my increasing question

I have a ardunio UNO connected to replay SPDT . My goal is to change the frequency on the 60hz to random frequencies e.g 10hz 12hz then 10hz this is being done by triggering the replay

There are more componentS attached to the circuit accomplish buT where I need help is in writing a sketch on the ardunio using 4 pinouts on the ardunio to trigger for a specific time. Eg pin 11 and 12 Trigger simultaneously trigger ON for 50ms then on off for 10ms pin 9 and 10 trigger on 30ms later ON for 50ms and then off all of the wold be in voidloop

Please can someone assistance by showing a commented code e.g as example to steer me in the right direction

I have no idea what you want to accomplish here. There is no way a relay can move fast enough to do this.