Longitudinal mobile mood tracking app with random reminders
The best thing I can find is somebody's side project on experience sampling (the code is on github), so not sure if it's being maintained or anything, but it does appear to do exactly what you want.