Generates a random tree with the parameters you give it