Calculation Of P-value

In Logistic and Random Forest Regression how to find the value of p for each variable

Not Regression I mean Classification