cleaned up, replaced Math with msg.random