Sometimes you find people manning the little travel desks around the baggage reclaim hall and they can sell you regular tickets for the train which will save you the horror of queuing for the station ticket machines. I would never go to Gatwick station without a ticket already sorted as those...