I found somewhere, looong ago, a script called WanderAI. Its for a FPS enemy, but you can take the moving part and tweak it...
If anyone knows where the script is...


To the finest Game Designing tool I have ever seen!