A man has been charged over a terrifying rampage in which he allegedly waved a samurai sword inside Karrinyup Shopping Centre.