Synchronization and timing techniques based on statistical random sampling