You'd run this out of cron, like, every few hours: #!/usr/bin/python import RPi.GPIO as GPIO import sys import time import subprocess import os import random hosts = ["1.1.1.1", "8.8.8.8", "9.9.9.9"] random.shuffle(hosts) FNULL = open(os.devnull) for...