sample from a gp