random Fourier Series and Gibbs measures