Spectral random walk of a single molecule