Random Motion, Harmonic Oscillator and Dark Energy