******HANDS FREE********* This is a very simple concept for an 'AI' system. It simply works by choosing a random number, and then depending on what number the engine chose the character will move in a certain direction. Notice that I put quotation marks around the 'AI' this is because these scripts are in essence just the game making random numbers;and then the number dictates what the sprite does.
I was just surfing the internet then i saw a video that this concept in it! This type of thing has almost definitely been done before on this website and will probably be done again, even so i thought i should make this out of my own curiosity. Feel free to remix (though why should you) to your hearts content.