An alternative variational principle for geodesics of a Randers metric