How does sp_randint work? : <p>I am doing hyperparameter optimisation of Random Forest classifier. I am planning to use RandomSearchCV. </p>

<p>So by checking the available code in Scikit learn: What does sp_randint do?
Does it randomly take a value from 1 to 11? Can it be replaced by other function?</p>

<pre><code>    from scipy.stats import randint as sp_randint

    param_dist = {"n_estimators": sp_randint (1, 11), 
                  "max_depth": [3, None],
                  "max_features": sp_randint(1, 11),
                  "min_samples_split": sp_randint(1, 11),
                  "min_samples_leaf": sp_randint(1, 11),
                 }
</code></pre>

<p>Thank you.</p>
