Movement like xbox's menu?

Hey. I was looking for my game for xbox when i saw the menu moving slowly side to side. It was a totally random movement, but it was restricted. Does anyone know how to do this? I’m just now starting to pick up actionscript, and it would be a cool thing to add. Thanks, -Naaman