1. An apparatus comprising: a configurable circuit comprising: a processing unit to produce samples from a probability distribution related to a stochastic problem; and a controller to configure the processing unit by providing information about the stochastic problem to the processing unit and to cause the processing unit to produce the samples.