implemented new random generated from thermal sweep into thermal sweep montecarlo search