Random movement x

I’m having trouble making an objekt randomly move on the x axis and at the same time change width. can anyone make an eksample action script?