A probabilistic approach to problems of Diophantine approximation