Made random tree generator.