We proceed in the framework of classical random fields and our aim is to obtain quantum probabilities, including entangled systems. We present a class of random fields and a mathematical model of threshold detection, which reproduce quantum probabilities.