The use of the probability transformation (PTM) method in some random mechanic problems