Solution by sampling